Skip to content

Commit

Permalink
Fixes issue on SyncOneTimePayments #296
Browse files Browse the repository at this point in the history
  • Loading branch information
andrelopez committed Jun 26, 2022
1 parent f2c2fc2 commit 2068917
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jobs/SyncOneTimePayments.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function execute($queue): void
$newOrder->quantity = 1;
$newOrder->isSubscription = false;
$newOrder->dateOrdered = DateTimeHelper::toDateTime($charge['created'])->format('Y-m-d H:i:s');
$newOrder->dateCreated = $newOrder->dateOrdered;
$newOrder->dateCreated = DateTimeHelper::toDateTime($charge['created']);
$newOrder->orderStatusId = $this->defaultStatusId;
$newOrder->stripeTransactionId = $charge['id'];
$newOrder->email = $email;
Expand Down
2 changes: 1 addition & 1 deletion src/jobs/SyncSubscriptionPayments.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function execute($queue): void
$newOrder->totalPrice = StripePlugin::$app->orders->convertFromCents($invoice['amount_paid'], $newOrder->currency);
$newOrder->quantity = $subscription['quantity'];
$newOrder->dateOrdered = DateTimeHelper::toDateTime($invoice['created'])->format('Y-m-d H:i:s');
$newOrder->dateCreated = $newOrder->dateOrdered;
$newOrder->dateCreated = DateTimeHelper::toDateTime($invoice['created']);
$newOrder->orderStatusId = $this->defaultStatusId;
$newOrder->stripeTransactionId = $subscriptionId;
$newOrder->email = $email;
Expand Down

0 comments on commit 2068917

Please sign in to comment.