How to validate PayPal account?

后端 未结 5 1113
温柔的废话
温柔的废话 2020-12-14 08:41

I want to integrate paypal to my website and ask users to enter paypal account for commission pay out. How can I check if their account exists on paypal? I prefer NOT to sen

5条回答
  •  伪装坚强ぢ
    2020-12-14 08:42

    I implemented following script in PHP for GetVerifiedStatus method with API call and it is working fine for me. This script is for sandbox so if you want to test it, please test it with sandbox PayPal accounts. If you want to use it for production mode, then delete the lines for sandbox (I showed them in the comment hints) . I explained about the things you need to get from paypal to run this code inside the PHP comments.

    responseEnvelope->ack == "Success"){
    $output = array('status' => true); //means user is verified successfully
    } else {
    $output = array('status' => false); //means verification was unsuccessful
    }
    
    echo $output;
    
    ?>
    

提交回复
热议问题