Skip to main content

Request values

Deprecated

Starting April 30, 2022, new users can no longer install your legacy Hosted Payment SDK (HPSDK) integrations. Your new payments app should be launched by this time to ensure that there's no disruption with new user onboarding. Existing users will have until July 31, 2022 to switch to your payments app. In early May 2022, Shopify will contact impacted users who haven't migrated to the new platform to help them adopt an alternative payments app and avoid payment processing disruptions. After July 31, 2022, all HPSDK integrations will be deprecated.

Note

To learn more about the HPSDK deprecation, and how to migrate to Payments Platform, refer to Hosted Payment SDK overview.

Note

Learn more about the new payments platform.

KeyTypeExample

x_account_id Required.

Note: This is an account identifier assigned to the merchant by the payment processor.

unicode stringZ9s7Yt0Txsqbbx
x_amount Required.decimal89.99
x_currency Required.iso-4217USD

x_gateway_reference Required.

Note: The reference of the payment that's returned by the gateway when the first transaction is created. This will only be present in order management requests.

unicode stringa32-74a4-a6a7-3e7

x_reference Required.

Note: Unique reference of an order assigned by the merchant.

ascii string19783
x_shop_country Required.iso-3166-1alpha-2US
x_shop_name Required.unicode stringWidgets Inc

x_signature Required.

Note: See Signing mechanism.

hex string, case-insensitive3a59e201a9b8692702b8c41dcba476d4a46e5f5c

x_test Required.

Note: Indicates whether or not this request should be processed in test mode (if supported).

true/falsetrue

x_url_callback Required.

Note: URL to which a callback notification should be sent asynchronously.

urlhttps://myshopify.io/ping/1

x_url_cancel Required.

Note: URL to which customer must be redirected when they wish to quit payment flow and return to the merchant's site.

urlhttps://myshopify.io

x_url_complete Required.

Note: URL to which customer must be redirected upon successfully completing payment flow.

urlhttps://myshopify.io/orders/1/done

x_transaction_type

Note: You'll only get this value if you're using order management. The valid values are capture, refund, void.

fixed choicecapture
x_customer_billing_address1unicode string241 Spadina Ave
x_customer_billing_address2unicode string
x_customer_billing_cityunicode stringToronto
x_customer_billing_companyunicode stringShopify
x_customer_billing_countryiso-3166-1 alpha-2CA
x_customer_billing_phoneunicode string+1-613-987-6543
x_customer_billing_stateunicode stringON
x_customer_billing_zipunicode stringM5T 3A8
x_customer_emailunicode stringboris.slobodin@example.com
x_customer_first_nameunicode stringBoris
x_customer_last_nameunicode stringSlobodin
x_customer_phoneunicode string+1-613-987-6543
x_customer_shipping_address1unicode string241 Spadina Ave
x_customer_shipping_address2unicode string
x_customer_shipping_cityunicode stringToronto
x_customer_shipping_companyunicode stringShopify
x_customer_shipping_countryiso-3166-1 alpha-2CA
x_customer_shipping_first_nameunicode stringBoris
x_customer_shipping_last_nameunicode stringSlobodin
x_customer_shipping_phoneunicode string+1-416-123-4567
x_customer_shipping_stateunicode stringON
x_customer_shipping_zipunicode stringM5T 3A8
x_descriptionunicode stringOrder #123
x_invoiceunicode string#123

x_shopify_order_id

Note: The unique identifier of the order the request originated from. This will only be present in order management requests.

integer450789469

Was this page helpful?