【问题标题】:Drupal Auto fill billing information in cc avenue paymentDrupal Auto 在 cc avenue payment 中填写账单信息
【发布时间】:2016-02-15 21:44:54
【问题描述】:

我使用Drupal Commerce Cc Avenue 作为我的电子商务网站的支付网关。在结帐步骤中,用户输入他的帐单信息。在下一步中,它验证他/她的订单并重定向到 Cc avenue 支付网关,在那里它再次询问用户帐单地址。我想自动填写他/她在上一步中输入的用户帐单地址。可以吗?

【问题讨论】:

    标签: drupal drupal-7 payment-gateway billing ccavenue


    【解决方案1】:

    终于在这个问题队列https://www.drupal.org/node/2310505的帮助下找到了答案

    在 commerce_ccavenue.module 中添加了几行 commerce_ccavenue_redirect_form($form, &$form_state, $order, $payment_method)

    $billing_address = $wrapper->commerce_customer_billing->commerce_customer_address->value();
      $order_data = array(
        'merchant_id' => $payment_method['settings']['merchant_id'],
        'amount' => $wrapper->commerce_order_total->amount->value() / 100,
        'order_id' => $order->order_id,
        'cancel_url' => url('checkout/' . $order->order_id . '/payment/back/' . $order->data['payment_redirect_key'], array('absolute' => TRUE)),
        'redirect_url' => url('checkout/' . $order->order_id . '/payment/return/' . $order->data['payment_redirect_key'], array('absolute' => TRUE)),
        'working_key' => $payment_method['settings']['working_key'],
        'access_code' => $payment_method['settings']['access_code'],
        'language' => 'EN',
        'currency' => $currency_code,
        'billing_name' => $billing_address['name_line'],
        'billing_address' => $billing_address['thoroughfare']. ' ' . $billing_address['premise'] . ' ' . $billing_address['sub_premise'],
        'billing_zip' => $billing_address['postal_code'],
        'billing_city' => $billing_address['locality'],
        'billing_state' => $billing_address['administrative_area'],
        'billing_country' => 'India',
      );
    

    commerce_ccavenue_redirect_form($form, &$form_state, $order, $payment_method) 中缺少这些行。添加这些行后工作正常。

    【讨论】:

    • 收货地址?
    • 如何在 Android 应用程序 ccavenue webview 中启用账单地址和送货地址相同,请帮助我
    猜你喜欢
    • 2021-12-14
    • 2016-05-06
    • 2012-12-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-04
    • 2010-12-26
    • 1970-01-01
    • 2017-04-30
    相关资源
    最近更新 更多