Open LEHOANGLONG0807 opened 2 years ago
{payerID: RH8RP3Z44U7GY, paymentId: PAYID-MK65OYA2H474243DM883351G, token: EC-98J428524D6047132, status: success, data: {id: PAYID-MK65OYA2H474243DM883351G, intent: sale, state: approved, cart: 98J428524D6047132, payer: {payment_method: paypal, status: UNVERIFIED, payer_info: {email: sb-gd0c4716944929@personal.example.com, first_name: John, last_name: Doe, payer_id: RH8RP3Z44U7GY, shipping_address: {recipient_name: John Doe, line1: 1130 5TH AVE, city: SEASIDE, state: OR, postal_code: 97138, country_code: US}, country_code: US}}, transactions: [{amount: {total: 699.30, currency: USD, details: {subtotal: 649.00, shipping: 50.30, insurance: 0.00, handling_fee: 0.00, shipping_discount: 0.00, discount: 0.00}}, payee: {merchant_id: SHVGF7T9L9D5Q, email: sb-wqhh614360505@business.example.com}, description: Payment upgrade phone., soft_descriptor: PAYPAL TEST STORE, item_list: {items: [{name: iPhone 11 Pro Max, price: 649.00, currency: USD, tax: 0.00, quantity: 1}], shipping_address: {recipient_name: John Doe, line1: 1130 5TH AVE, city: SEASIDE, state: OR, postal_code: 97138, country_code: US}, shipping_phone_number: +15033092780}, related_resources: [{sale: {id: 40965359YA2203936, state: pending, amount: {total: 699.30, currency: USD, details: {subtotal: 649.00, shipping: 50.30, insurance: 0.00, handling_fee: 0.00, shipping_discount: 0.00, discount: 0.00}}, payment_mode: INSTANT_TRANSFER, reason_code: PAYMENT_REVIEW, protection_eligibility: INELIGIBLE, transaction_fee: {value: 24.90, currency: USD}, receipt_id: 5368147120935410, parent_payment: PAYID-MK65OYA2H474243DM883351G, create_time: 2022-06-30T17:05:54Z, update_time: 2022-06-30T17:05:54Z, links: [{href: https://api.sandbox.paypal.com/v1/payments/sale/40965359YA2203936, rel: self, method: GET}, {href: https://api.sandbox.paypal.com/v1/payments/sale/40965359YA2203936/refund, rel: refund, method: POST}, {href: https://api.sandbox.paypal.com/v1/payments/payment/PAYID-MK65OYA2H474243DM883351G, rel: parent_payment, method: GET}], soft_descriptor: PAYPAL TEST STORE}}]}], failed_transactions: [], create_time: 2022-06-30T17:03:28Z, update_time: 2022-06-30T17:05:54Z, links: [{href: https://api.sandbox.paypal.com/v1/payments/payment/PAYID-MK65OYA2H474243DM883351G, rel: self, method: GET}]}}
I can`t find capture_id in response success.
check out https://pub.dev/packages/flutter_paypal_native
{payerID: RH8RP3Z44U7GY, paymentId: PAYID-MK65OYA2H474243DM883351G, token: EC-98J428524D6047132, status: success, data: {id: PAYID-MK65OYA2H474243DM883351G, intent: sale, state: approved, cart: 98J428524D6047132, payer: {payment_method: paypal, status: UNVERIFIED, payer_info: {email: sb-gd0c4716944929@personal.example.com, first_name: John, last_name: Doe, payer_id: RH8RP3Z44U7GY, shipping_address: {recipient_name: John Doe, line1: 1130 5TH AVE, city: SEASIDE, state: OR, postal_code: 97138, country_code: US}, country_code: US}}, transactions: [{amount: {total: 699.30, currency: USD, details: {subtotal: 649.00, shipping: 50.30, insurance: 0.00, handling_fee: 0.00, shipping_discount: 0.00, discount: 0.00}}, payee: {merchant_id: SHVGF7T9L9D5Q, email: sb-wqhh614360505@business.example.com}, description: Payment upgrade phone., soft_descriptor: PAYPAL TEST STORE, item_list: {items: [{name: iPhone 11 Pro Max, price: 649.00, currency: USD, tax: 0.00, quantity: 1}], shipping_address: {recipient_name: John Doe, line1: 1130 5TH AVE, city: SEASIDE, state: OR, postal_code: 97138, country_code: US}, shipping_phone_number: +15033092780}, related_resources: [{sale: {id: 40965359YA2203936, state: pending, amount: {total: 699.30, currency: USD, details: {subtotal: 649.00, shipping: 50.30, insurance: 0.00, handling_fee: 0.00, shipping_discount: 0.00, discount: 0.00}}, payment_mode: INSTANT_TRANSFER, reason_code: PAYMENT_REVIEW, protection_eligibility: INELIGIBLE, transaction_fee: {value: 24.90, currency: USD}, receipt_id: 5368147120935410, parent_payment: PAYID-MK65OYA2H474243DM883351G, create_time: 2022-06-30T17:05:54Z, update_time: 2022-06-30T17:05:54Z, links: [{href: https://api.sandbox.paypal.com/v1/payments/sale/40965359YA2203936, rel: self, method: GET}, {href: https://api.sandbox.paypal.com/v1/payments/sale/40965359YA2203936/refund, rel: refund, method: POST}, {href: https://api.sandbox.paypal.com/v1/payments/payment/PAYID-MK65OYA2H474243DM883351G, rel: parent_payment, method: GET}], soft_descriptor: PAYPAL TEST STORE}}]}], failed_transactions: [], create_time: 2022-06-30T17:03:28Z, update_time: 2022-06-30T17:05:54Z, links: [{href: https://api.sandbox.paypal.com/v1/payments/payment/PAYID-MK65OYA2H474243DM883351G, rel: self, method: GET}]}}
I can`t find capture_id in response success.