objective-c - paypal ios sdk 怎么在服务器端验证?
伊谢尔伦
伊谢尔伦 2017-04-18 09:42:02
0
2
620

今天给一个IOS APP加 paypal 支付。paypal支付相对阿里云的支付宝,比较简单,不需要签名等。。

但问题时,加到app中后,在支付成功后,他会通过app 发送数据给服务端,难道就依靠这个数据去修改服务端的订单状态吗?我看他也没有设置回调的地方。。。。安全性和稳定性怎么来保证呢?

有过开发经验的人请指教下。谢谢。

- (void)sendCompletedPaymentToServer:(PayPalPayment *)completedPayment {
    // TODO: Send completedPayment.confirmation to server
    NSLog(@"Here is your proof of payment:\n\n%@\n\nSend this to your server for confirmation and fulfillment.", completedPayment.confirmation);
}
伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

Antworte allen(2)
左手右手慢动作

服务端会取返回的那一串中的id去验证结果

阿神

在商户中心需要配置回调的url, 当支付成功后,paypal会自动将支付结果通过IPN请求发送到这个url上,在这里你可以做诸如订单状态修改等操作。

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!