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

问题描述

Paypal建议使用其余API的v2版本进行订单和付款处理.他们的文档是根据v2 API编写的.

Paypal recommends using their v2 version of the rest API for Orders and Payments processing. Their documentation is written as per the v2 APIs.

用于V2 API的SDK称为Checkout SDK: https://github.com/paypal/Checkout-Java-SDK

The SDK for V2 APIs is called Checkout SDK:https://github.com/paypal/Checkout-Java-SDK

我需要通过Paypal整合正常付款和定期付款. Checkout SDK似乎不支持定期付款API(CreatePlan和CreateBillingAgreement).

I need to integrate both normal and recurring payments via Paypal. It seems that the Checkout SDK does not support recurring payments APIs(CreatePlan and CreateBillingAgreement).

如果我需要将v2 API用于订单和付款流程,是否需要同时包含v1(Rest API SDK)和v2(Checkout SDK)?

Do I need to include both v1(Rest API SDK) and v2(Checkout SDK) for the same if I need to use v2 APIs for orders and payments flows?

据我检查,没有用于定期付款的帐单计划和帐单协议的v2 API.有什么方法可以与单个SDK集成,可能是v1和v2集成的包装SDK?

As far as I have checked there are no v2 APIs for Billing Plans and Billing Agreements for recurring payments. Is there a way I can integrate with a single SDK, may be a wrapper SDK for both v1 and v2 integration?

推荐答案

您可以尝试测试版: https://github.com/paypal/PayPal-Java-SDK/tree/2.0-beta

有关以下内容的更多详细信息: https://github.com/paypal/PayPal -Java-SDK/issues/371

More details about: https://github.com/paypal/PayPal-Java-SDK/issues/371

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

07-24 23:23