简体   繁体   English

2Checkout - 支付 API 集成

[英]2Checkout - Payment API integration

I am working around this: https://www.2checkout.com/documentation/sandbox/payment-api-testing我正在解决这个问题: https : //www.2checkout.com/documentation/sandbox/payment-api-testing

I already done the part where you generate the token.我已经完成了生成令牌的部分。 I understand the things up to this step.我了解这一步的事情。

I do not understand what i have to do later, how i can create the sale/charge the credit card.我不明白我以后必须做什么,我如何创建销售/信用卡收费。 I am working now only with the sandbox mode.我现在只使用沙盒模式。

So please tell me what i have to do next, do i have to create another post form or something else so i can proceed ?所以请告诉我接下来我必须做什么,我是否必须创建另一个帖子表单或其他内容才能继续?

Thanks in advance!提前致谢!

Reference : https://github.com/2Checkout/php-examples 参考: https : //github.com/2Checkout/php-examples

Have checked its code is working 检查其代码是否正常

Just pass that token to "Create the Sale" part of the reference link (its already passed there in $_POST['token'] 只需将该令牌传递到参考链接的“创建销售”部分即可(它已经在$ _POST ['token']中传递了)

在这里,我找到了 2checkout 支付网关集成的教程:-

https://www.codexworld.com/2checkout-payment-gateway-integration-in-php/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM