Alipay has an optional parameter: store_id, see documentation at: https://docs.open.alipay.com/api_1/alipay.trade.pay

We should send commerce_store id as default, but in the API level, offer a way to let user to customize this optional parameter.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

skyredwang created an issue. See original summary.

zfming’s picture

Assigned: Unassigned » zfming
zfming’s picture

skyredwang’s picture

Status: Active » Needs work
+++ b/src/Plugin/Commerce/PaymentGateway/CustomerScanQRCodePay.php
@@ -258,6 +260,12 @@ class CustomerScanQRCodePay extends OffsitePaymentGatewayBase implements Support
+    // Check if $store_id is null then get store_id in order
+    if (!$store_id) {
+      $order = Order::load($order_id);
+      $store_id = $order->getStoreId();
+    }
+

I'd like to move this part of logic check to UI or forms. So, the API stays clean.

zfming’s picture

ok, i move this part of code to forms

zfming’s picture

zfming’s picture

  • skyredwang committed bdc04de on 8.x-1.x authored by zfming
    Issue #2916695 by zfming: Support store_id as a parameter for upstream
    
skyredwang’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.