Skip to content

Commit db6ffe3

Browse files
feat: add wechatpay payment method and reduce resource loading and API requests during express checkout
1 parent 225703f commit db6ffe3

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

Model/Adminhtml/Notifications/Upgrade.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ private function shouldUpgrade(): void
103103

104104
private function getCloudVersion(): string
105105
{
106+
if (!function_exists('curl_init')) {
107+
return '';
108+
}
106109
$ch = curl_init('https://commercemarketplace.adobe.com/airwallex-payments-plugin-magento.html');
107110
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
108111
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "airwallex/payments-plugin-magento",
33
"type": "magento2-module",
44
"description": "",
5-
"version": "1.12.3",
5+
"version": "1.13.2",
66
"require": {
77
"ext-json": "*",
88
"php": "^7.4|^8.0",

etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22

33
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
4-
<module name="Airwallex_Payments" setup_version="1.12.3">
4+
<module name="Airwallex_Payments" setup_version="1.13.2">
55
<sequence>
66
<module name="Magento_Sales"/>
77
<module name="Magento_Payment"/>

view/frontend/layout/catalog_product_view.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
</head>
88
<body>
99
<referenceBlock name="product.info.addtocart.additional">
10-
<block name="product.info.addtocart.airwallex.additional" template="Airwallex_Payments::express.phtml" cacheable="false" before="-">
10+
<block name="product.info.addtocart.airwallex.additional" template="Airwallex_Payments::express.phtml" before="-">
1111
<arguments>
1212
<argument name="from" xsi:type="string">product_page</argument>
1313
</arguments>
1414
</block>
1515
</referenceBlock>
1616
<referenceBlock name="product.info.addtocart">
17-
<block name="product.info.addtocart.airwallex" template="Airwallex_Payments::express.phtml" cacheable="false" before="-">
17+
<block name="product.info.addtocart.airwallex" template="Airwallex_Payments::express.phtml" before="-">
1818
<arguments>
1919
<argument name="from" xsi:type="string">product_page</argument>
2020
</arguments>

0 commit comments

Comments
 (0)