简体   繁体   中英

Validating user's API credentials - PayPal DoDirectPayment

Hello I am working on a site that accept PayPal API Credentials for every restaurant owner so that amount could be transferred to their account directly.

The problem that I am facing, some times restaurant owners add wrong API credentials so when any order is placed the error "Security Header is not valid" appears means their API credentials is wrong.

The solution I want is that the API Credentials could be verified when they are added by restaurant owner, so that order could be placed by end user.

Is there any way to Verify/Validate PayPal API Credentials(User Name, Password, Signature), Please help.

Thanks in advance!

PayPal Dont have any External API to validate the API Credentials alone. instead. You can Use the Express Checkout SETEXPRESSCHEKOUT API to call with very Minimal data and the API credenitals, which will validate the API Crenditials and will generate a Token. If you get a Token it means the API Credenitials is correct. This will not do any money Movement happpens with this API Call. PP have this API avaiable in both NVP and SOAP format.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM