doue9730 2018-11-20 12:05 采纳率: 100%
浏览 41

使用Preapproval密钥进行paypal交易而无需用户身份验证

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();
    
    评论

报告相同问题?