[英]how to verify charge id after payment done with shopify payment gateway
shopify payment api I have implemented this api for my app and done payment successfully In response i get charge_id in a url as query string shopify payment api I have implemented this api for my app and done payment successfully In response i get charge_id in a url as query string
but I done know how to cross check this charge id after payment done successfully但我确实知道付款成功后如何交叉检查此费用 ID
I want to check this charge_id with the help of api.我想在 api 的帮助下检查这个charge_id。 shopify confirm me again this charge_id we got this amount of payment.
shopify 再次向我确认这个charge_id 我们收到了这笔款项。
api code api 代码
curl -X POST https://syzb.myshopify.com/admin/api/2022-07/graphql.json -H 'Content-Type: application/json' -H 'X-Shopify-Access-Token: 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' -d '{
"query": "mutation AppSubscriptionCreate($test: Boolean, $name: String!, $lineItems: [AppSubscriptionLineItemInput!]!, $returnUrl: URL! ){ appSubscriptionCreate(test: $test, name: $name, returnUrl: $returnUrl, lineItems: $lineItems) { userErrors { field message } appSubscription { id } confirmationUrl } }",
"variables": {
"test": true,
"name": "Premium +",
"returnUrl": "https://example.com/payment-success/?org=329BFBC5745344B58F321A1B842B73F8",
"lineItems": [
{
"plan": {
"appRecurringPricingDetails": {
"price": {
"amount": 99.50,
"currencyCode": "USD"
},
"interval": "EVERY_30_DAYS"
}
}
},
{
"plan": {
"appUsagePricingDetails": {
"terms": "Testing",
"cappedAmount": {
"amount": 10.25,
"currencyCode": "USD"
}
}
}
}
]
}
}'
curl -X GET "https://your-development-store.myshopify.com/admin/api/2022-07/recurring_application_charges/455696195.json" curl -X GET "https://your-development-store.myshopify.com/admin/api/2022-07/recurring_application_charges/455696195.json"
-H "X-Shopify-Access-Token: {access_token}" -H "X-Shopify-Access-Token: {access_token}"
https://shopify.dev/api/admin-rest/2022-07/resources/recurringapplicationcharge#get-recurring-application-charges-recurring-application-charge-id https://shopify.dev/api/admin-rest/2022-07/resources/recurringapplicationcharge#get-recurring-application-charges-recurring-application-charge-id
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.