当我尝试通过PayPal REST API代表我的用户创建帐户时,我将execStatus
设为COMPLETED
,这意味着该帐户未设置。
COMPLETED - The account creation request was successful, but the account holder must be redirected to finish setting up the account.
如何创建帐户并获得CREATED
响应?
CREATED - Account creation is complete. No redirection is necessary to let the account holder finish setting up the account.
(https://developer.paypal.com/docs/classic/api/adaptive-accounts/CreateAccount_API_Operation/)
在页面的最顶部:
The CreateAccount API creates a PayPal account on behalf of the specified third party. The account can be a personal account, premier account, or business account.
我不希望我的用户被重定向到PayPal。我将在代表他们创建PayPal帐户后立即获取他们的银行帐户信息并添加银行帐户,以便他们能够获得资金。
我想要实现的目标是创建一个PayPal帐户(无需重定向)并添加一个银行帐户,让他们接收其他用户将来支付的款项。
我使用PayPalAdaptiveAccountsSDK
' public CreateAccountResponse CreateAccount(CreateAccountRequest createAccountRequest);
方法。
PayPalAdaptiveAccountsSDK:https://github.com/paypal/adaptiveaccounts-sdk-dotnet
我该如何克服这个问题?