This article is a mirror article of machine translation, please click here to jump to the original article.

View: 24676|Reply: 0

[Source] . Net integration PayPal IPN return value has always been INVALID

[Copy link]
Posted on 5/28/2019 4:16:05 PM | | | |
First, the Immediate Payment Notice (IPN) document link:The hyperlink login is visible.

Once the server receives an instant payment notification, you will need to confirm it by building an HTTP POST sent to PayPal. Your POST should be sent to:The hyperlink login is visible.

(when you receive it). You also need to append a variable named "cmd" with a value of "_notify-validate" (e.g., cmd=_notify-validate) to the POST string.

PayPal will reply to the POST with the word "VERIFIED"or"INVALID”。


VERIFIED: Validation is successful, INVALID means validation failed.

Solution:

Modify the character encoding of PayPal and find "Settings - Sales Tools - PayPal Button Language Encoding - More Encoding Options", as shown in the figure below:



Set "Do you want to use the same encoding (e.g., IPN, downloadable logs, emails) in the data that PayPal sends you?" "Encoded as UTF-8.

My Code:



Try to commit with postman, and it also returns "VERIFIED", as shown below:






Previous:WPF logs in to Discuz and posts
Next:. .NET resiliency and transient failure handling Polly retry strategy
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com