Skip to content

Commit

Permalink
Fixed bug on sync subscriptions #46
Browse files Browse the repository at this point in the history
  • Loading branch information
andrelopez committed Sep 7, 2019
1 parent 052b0b7 commit 97e6027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jobs/SyncSubscriptionPayments.php
Expand Up @@ -131,7 +131,7 @@ public function execute($queue)
$newOrder->currency = strtoupper($invoice['currency']);
$newOrder->totalPrice = StripePlugin::$app->orders->convertFromCents($invoice['amount_paid'], $newOrder->currency);
$newOrder->quantity = $subscription['quantity'];
$newOrder->dateOrdered = DateTimeHelper::toDateTime($invoice['date'])->format('Y-m-d H:i:s');
$newOrder->dateOrdered = DateTimeHelper::toDateTime($invoice['created'])->format('Y-m-d H:i:s');
$newOrder->dateCreated = $newOrder->dateOrdered;
$newOrder->orderStatusId = $this->defaultStatusId;
$newOrder->stripeTransactionId = $subscriptionId;
Expand Down

0 comments on commit 97e6027

Please sign in to comment.