我在我的应用程序中集成了适用于 iOS 的 Paypal Mobile SDK。
在委托 Methode completePayment 我得到这个 json:
CurrencyCode: EUR
Amount: 39.95
Short Description: Michaels Test
Intent: sale
Processable: Already processed
Display: €39.95
Confirmation: {
client = {
environment = mock;
"paypal_sdk_version" = "2.12.3";
platform = iOS;
"product_name" = "PayPal iOS SDK";
};
response = {
"create_time" = "2015-10-29T13:18:02Z";
id = "PAY-NONETWORKPAYIDEXAMPLE123";
intent = sale;
state = approved;
};
"response_type" = payment;
}
Details: (null)
Shipping Address: (null)
Invoice Number: (null)
Custom: (null)
Soft Descriptor: (null)
BN code: (null)
它说创建成功。但是当在 developer.paypal.com 中查看我的仪表板时,我看不到任何交易。对于环境,我使用贝宝沙盒。
在文档中说我必须使用 rest-api 来验证即时付款:https ://developer.paypal.com/docs/integration/mobile/verify-mobile-payment/
那么我是否需要一个后端服务来验证我从客户端创建的付款,或者此时我需要做什么?
谢谢,迈克尔