doudunyi3796 2017-06-06 10:37
浏览 56
已采纳

Paypal Express Checkout未显示订单摘要

I am using the Paypal Express checkout in zend framework payments are working fine but there is an issues with the order summery on paypal checkout page.

It is not showing any order information there.

Here is my controller:

$storage = $this->getServiceLocator()->get('payum')->getStorage('Reisesparer\Model\PaymentDetails');

$details = $storage->create();
$details['PAYMENTREQUEST_0_CURRENCYCODE'] = 'EUR';
$details['PAYMENTREQUEST_0_AMT'] = $request->getPost('grandtotal_price');
$details['ORDER_CUSTOM_ID'] = $orderNumber;
$storage->update($details);
$captureToken =    this->getServiceLocator()->get('payum.security.token_factory')->createCaptureToken(               this->redirect()->toUrl($captureToken->getTargetUrl().'?amout='.$details['PAYMENTREQUEST_0_AMT']);

enter image description here

How i can show the current transaction summery on the checkout page.

  • 写回答

1条回答 默认 最新

  • doupang1917 2017-06-07 08:06
    关注

    You can provide item details in the same way as you provided currency etc. But you have to be careful while setting up details about items, specially about the total price, item numbers etc. Because they should be in sequential orders and calculated exactly.

    $details['L_PAYMENTREQUEST_0_NAME0'] = 'Book One';
    $details['L_PAYMENTREQUEST_0_NAME1'] = 'Book Two';
    $details['L_PAYMENTREQUEST_0_AMT0'] = 25.00;
    $details['L_PAYMENTREQUEST_0_AMT1'] = '22.00';
    $details['PAYMENTREQUEST_0_ITEMAMT'] = 47.00;
    

    You must read the Doc for paypal express checkout to make it implement. For item details, search for Payment Details Item Type Fields on that doc page.

    You can check this issue on order summary too.

    Hope it helps you!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料