Hi, I’ m developing shopify payment app.
In order to fulfill compliance of GDPR, I develop a api to receive customer data request.
The example request like this: (copy from https://shopify.dev/apps/webhooks/configuration/mandatory-webhooks#customers-data_request-payload)
{
“shop_id”: 954889,
“shop_domain”: “{shop}.myshopify.com”,
“orders_requested”: [299938, 280263, 220458],
“customer”: {
“id”: 191167,
“email”: “john@example.com”,
“phone”: “555-625-1199”
},
“data_request”: {
“id”: 9999
}
}
The problem is when I develop payment api.
I can not get an order id like 299938. I only get order id like “8BLFxjEHP5PkA1kNsb6iRKX9”. So I cannot map the order when I receive GDPR request.
The example request body like this:(copy from https://shopify.dev/apps/payments/processing-a-payment)
{
“id”: “8BLFxjEHP5PkA1kNsb6iRKX9”,
“gid”: “gid://shopify/PaymentSession/8BLFxjEHP5PkA1kNsb6iRKX9”,
“group”: “rZNvy+1jH6Z+BcPqA5U5BSIcnUavBha3C63xBalm+xE=”,
“amount”: “123.00”,
“currency”: “CAD”,
“test”: false,
“merchant_locale”: “en”,
“payment_method”: {
“type”: “offsite”,
“data”: {
“cancel_url”: “https://my-test-shop.com/1/checkouts/4c94d6f5b93f726a82dadfe45cdde432”
}
},
“proposed_at”: “2020-07-13T00:00:00Z”,
“customer”: {
“billing_address”: {
“given_name”: “Alice”,
“family_name”: “Smith”,
“line1”: “123 Street”,
“line2”: “Suite B”,
“city”: “Montreal”,
“postal_code”: “H2Z 0B3”,
“province”: “Quebec”,
“country_code”: “CAN”,
“company”: “”
},
“shipping_address”: {
“given_name”: “Alice”,
“family_name”: “Smith”,
“line1”: “123 Street”,
“line2”: “Suite B”,
“city”: “Montreal”,
“postal_code”: “H2Z 0B3”,
“province”: “Quebec”,
“country_code”: “CAN”,
“company”: “”
},
“email”: “buyer@example.com”,
“phone_number”: “5555555555”,
“locale”: “fr”
},
“kind”: “sale”
}
can I get long type order id when receiving a payment request?
or are there way to map the order?