i have successfully generated Preapproval key by making necessary api call. I need to know how to execute the payment with this Preapproval key so that user authentication is not required. i need the php code for making this payrequest api call
1条回答 默认 最新
dongzhong8691 2018-11-21 14:10关注According to Step 2 on this page
// $approvalKey should be your previously retrieved Approval Key // Change sandbox to the production URL for LIVE mode $ppRedirectUrl = 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_ap-preapproval&preapprovalkey=' . $approvalKey; header('Location:' . $ppRedirectUrl ); exit();解决 无用评论 打赏 举报