Skip to content

Commit

Permalink
Bump version to 1.0.2203111742
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Minot committed Mar 11, 2022
1 parent ecd2f02 commit eb451e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions Api/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,17 @@ public function orderPostMethod($shippingAddress,$paymentIntentId,$shippingOptio
}

$quote->reserveOrderId()->save();
$this->setQuoteAddresses($shippingAddress, $email, $quote, $customer);
$quote->getShippingAddress()->setShippingMethod($shippingOptionId);
$this->shippingRate
->setCode($shippingOptionId)
->getPrice();
$quote->getShippingAddress()->addShippingRate($this->shippingRate);
$quote->getShippingAddress()->setCollectShippingRates(true);
if($email) {
$this->setQuoteAddresses($shippingAddress, $email, $quote, $customer);
}
if($shippingOptionId) {
$quote->getShippingAddress()->setShippingMethod($shippingOptionId);
$this->shippingRate
->setCode($shippingOptionId)
->getPrice();
$quote->getShippingAddress()->addShippingRate($this->shippingRate);
$quote->getShippingAddress()->setCollectShippingRates(true);
}
$quote->getPayment()->importData(['method' => 'paywax_wallet']);
$quote->setPaymentMethod('paywax_wallet');
$quote->getPayment()->setTransactionId($paymentIntentId);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"php": "~7.1.3||~7.2.0||~7.3.0||~7.4.0"
},
"type": "magento2-module",
"version": "1.0.2110051506",
"version": "1.0.2203111742",
"license": [
"OSL-3.0"
],
Expand Down

0 comments on commit eb451e2

Please sign in to comment.