带Paypal的OmniPayBundle

带Paypal的OmniPayBundle

本文介绍了带Paypal的OmniPayBundle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我需要有关OmniPay Bundle和Symfony 2的帮助.我在我的symfony 2项目中集成了贝宝付款,并且在贝宝上进行了重定向,在那里进行了支付,贝宝在我的redirectUrl上使用令牌和payerId将我重定向了.

Hi I need help with omnipay bundle and symfony 2.I am integrating paypal payment on my symfony 2 project , and I do redirection on paypal do PAY there and paypal redirect me on my redirectUrl, with token and payerId.

但是当我查看沙盒帐户时,没有交易

But when I look in my sandbox account there is no transactions,

我可能缺少一些东西,有人可以帮忙吗?

I am missing something probably, can anybody help?

推荐答案

将客户重定向回您的站点以完成交易后,您需要致电completePurchase()(或completeAuthorize()).将您第一次调用purchase()时提供的相同选项传递给它:

You need to call completePurchase() (or completeAuthorize()) once the customer is redirected back to your site to complete the transaction. Pass it the same options you gave when you first called purchase():

$response = $gateway->completePurchase($options)->send();

这篇关于带Paypal的OmniPayBundle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 13:50