回调通知内容"/>
关于 Paypal 的回调通知内容
前面配置等直接参考:
PS:通知域名刚开始我结尾加了 / ,然后没接到通知,后来取消就接受到了
我设置的 Webhook 的类型为 * All Events ,就是接受所有消息通知
经过沙箱支付后,指定域名经过打印日志,接收到了两个通知,分别如下:
支付完成状态订单:
{"id": "WH-10H50305W0839804X-4N804824FJ2329323","event_version": "1.0","create_time": "2019-08-12T01:19:01.454Z","resource_type": "sale","event_type": "PAYMENT.SALE.COMPLETED","summary": "Payment completed for $ 6.0 USD","resource": {"id": "5JX56943RP7442408","state": "completed","amount": {"total": "6.00","currency": "USD","details": {"subtotal": "6.00"}},"payment_mode": "INSTANT_TRANSFER","protection_eligibility": "ELIGIBLE","protection_eligibility_type": "ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE","transaction_fee": {"value": "0.50","currency": "USD"},"invoice_number": "20190812091615","parent_payment": "PAYID-LVIL3ZI77B71767630669329","create_time": "2019-08-12T01:18:57Z","update_time": "2019-08-12T01:18:57Z","links": [{"href": "","rel": "self","method": "GET"},{"href": "","rel": "refund","method": "POST"},{"href": "","rel": "parent_payment","method": "GET"}]},"links": [{"href": "","rel": "self","method": "GET"},{"href": "","rel": "resend","method": "POST"}]
}
还有这个:
{"id": "WH-19U72719N68771012-27985477R4070232X","event_version": "1.0","create_time": "2019-08-12T01:19:03.636Z","resource_type": "payment","event_type": "PAYMENTS.PAYMENT.CREATED","summary": "Checkout payment is created and approved by buyer","resource": {"update_time": "2019-08-12T01:18:57Z","create_time": "2019-08-12T01:16:21Z","links": [{"href": "","rel": "self","method": "GET"}],"id": "PAYID-LVIL3ZI77B71767630669329","state": "approved","transactions": [{"amount": {"total": "6.00","currency": "USD","details": {"subtotal": "6.00","shipping": "0.00","insurance": "0.00","handling_fee": "0.00","shipping_discount": "0.00"}},"payee": {"merchant_id": "2CL86JLBXET28","email": "appleyuanpan-facilitator@163"},"description": "幸運雲1個月會員","invoice_number": "20190812091615","item_list": {"items": [{"name": "幸運雲會員","price": "6.00","currency": "USD","tax": "0.00","quantity": 1}],"shipping_address": {"recipient_name": "test buyer","line1": "NO 1 Nan Jin Road","city": "Shanghai","state": "Shanghai","postal_code": "200000","country_code": "C2","default_address": false,"preferred_address": false,"primary_address": false,"disable_for_transaction": false}},"related_resources": [{"sale": {"id": "5JX56943RP7442408","state": "completed","amount": {"total": "6.00","currency": "USD","details": {"subtotal": "6.00","shipping": "0.00","insurance": "0.00","handling_fee": "0.00","shipping_discount": "0.00"}},"payment_mode": "INSTANT_TRANSFER","protection_eligibility": "ELIGIBLE","protection_eligibility_type": "ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE","transaction_fee": {"value": "0.50","currency": "USD"},"parent_payment": "PAYID-LVIL3ZI77B71767630669329","create_time": "2019-08-12T01:18:57Z","update_time": "2019-08-12T01:18:57Z","links": [{"href": "","rel": "self","method": "GET"},{"href": "","rel": "refund","method": "POST"},{"href": "","rel": "parent_payment","method": "GET"}]}}]}],"intent": "sale","payer": {"payment_method": "paypal","status": "VERIFIED","payer_info": {"email": "appleyuanpan-buyer@163","first_name": "test","last_name": "buyer","payer_id": "AUQCF7MD8ESCU","shipping_address": {"recipient_name": "test buyer","line1": "NO 1 Nan Jin Road","city": "Shanghai","state": "Shanghai","postal_code": "200000","country_code": "C2","default_address": false,"preferred_address": false,"primary_address": false,"disable_for_transaction": false},"phone": "2163488444","country_code": "C2"}},"cart": "1E747857VP0341525"},"links": [{"href": "","rel": "self","method": "GET"},{"href": "","rel": "resend","method": "POST"}]
}
更多推荐
关于 Paypal 的回调通知内容
发布评论