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

今天给一个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伐。

reply all(2)
左手右手慢动作

The server will get the ID in the returned string to verify the result

阿神

You need to configure the callback url in the merchant center. When the payment is successful, Paypal will automatically send the payment result to this url through an IPN request. Here you can do operations such as modifying the order status.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template