Setup
Juspay Saleor Payment App Setup
Last updated
Was this helpful?
Juspay Saleor Payment App Setup
Last updated
Was this helpful?
Connects Juspay's Hyperswitch and Hypercheckout with Saleor, enabling merchants to process payments securely and efficiently within their Saleor storefront for both Indian and international customers.
1.1 Non Indian payments dashboard sign up
to Hyperswitch dashboard and navigate to connectors tab to configure connector(s) and enable various Payment Methods.
Note: While configuring connectors, please ensure that you also set up connector's webhook with hyperswitch.
1.2 Indian payments dashboard sign up
to Hypercheckout dashboard and navigate to Payments > PG Control Centre
to configure payment gateways and enable various Payment Methods.
Note: While configuring payment gateways, please ensure that you also set up it's webhook with hypercheckout dashboard .
Juspay Saleor app relies on these webhooks to update the payment status accurately and in real-time.
Sign up to , set up a new project, and tailor your store to meet your unique needs.
Input your Saleor API URL and click Add to Saleor
. This action will start the installation process and display the installation page.
Finally, click on Install App
, this will install the app in your dashboard
1.2.1 Configure for non Indian payments
Open Hyperswitch App installed on your saleor dashboard.
Click on Add new configuration
, which opens a popup to select non Indian payments. This will open a form to collect credentials.
Enter a unique configuration name. This name will be used later to assign the configuration to Saleor channels.
Enter your Hyperswitch Publishable Key. You can find this key under the Developers > API Keys
section of hyperswitch dasboard.
Enter your Hyperswitch Payment Response Hash Key. You can find this key under the Developers > API Keys
section of hyperswitch dasboard.
Click on Save Configuration
1.2.2 Configure for Indian payments
Open Hyperswitch App installed on your saleor dashboard.
Click on Add new configuration
, which opens a popup to select Indian payments. This will open a form to collect credentials.
Enter a unique configuration name. This name will be used later to assign the configuration to Saleor channels.
Enter your Hypercheckout merchant id. You can find this by clicking on your account symbol in navbar.
Enter your username to receive webhooks. To get username visit Payments > Setting > Webhooks
.
Enter your password to receive webhooks. To get passowrd visit Payments > Setting > Webhooks
.
Enter your Hypercheckout client id. To get client id you can visit studio from the sidebar Payment Page > Studio
.
Click on Save Configuration
For each channel, payments will be processed according to configurations assigned to it.
Now Hyperswitch Saleor App is configured to receive payments
If you have configured Juspay in your Saleor dashboard, you will receive the Juspay App ID in the response
Response
This call returns whether the payment is going through hyperswitch or hypercheckout.
Response
To initialize the transaction with hyperswitch, one needs to create a transaction in Saleor by calling the transactionInitialize mutation.
You can pass additional fields while initiating the transaction through the $data JSON object. The additional fields you can pass include:
customerId
: [Optional String] The identifier for the customer
authenticationType
: This is used for non Indian payments. Pass this parameter to force 3DS or non 3DS auth for this payment. Some connectors will still force 3DS auth even in case of passing 'no_three_ds' here and vice versa. Default value is 'no_three_ds' if not set Available options: three_ds
, no_three_ds
billingEmail
: [Optional String] customer's billing email
shippingEmail
: [Optional String] customer's shipping email
statementDescriptorName
: [Optional String] This is used for non Indian payments. For non-card charges, you can use this value as the complete description that appears on your customers’ statements. Must contain at least one letter, maximum 22 characters
statementDescriptorSuffix
: [Optional String] This is used for non Indian payments. Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
description
: [Optional String] A description for the payment
returnUrl
: [Optional String] The URL to which you want the user to be redirected after the completion of the payment operation (Mandatory Field for Payment Links),
manualRetryAllowed
: [Optional Boolean] This is used for non Indian payments. If true the payment can be retried with same or different payment method which means the confirm call can be made again.
allowedPaymentMethods
: [Optional JSON] This helps you to select which payment options you want to show on your payment page.
Example Response for Initializing a Non-Indian Transaction
Handle Response for Initializing Non-Indian Payment Transactions
You can use the paymentLinks.web
to redirect the customer to hyperswitch payment page. Additionally, this URL can also be embedded within an iframe
Example Response for Initializing a Indian Transaction
Hanlde Response for Initializing Indian Payment Transactions
You can use the paymentLinks.web
to redirect the customer to Hypercheckout payment page. Additionally, this URL can also be embedded within an iframe
The payment status will be automatically updated by the App in the backend upon Juspay receiving a webhook from the connector. Alternatively, you can call Saleor's Transaction Process mutation to retrieve the status of an initiated payment.
The Juspay Saleor App also supports additional flows such as payment capture, cancellation, and refunds. These actions can be triggered directly through the Saleor dashboard.
Note: If you trigger refunds through the Hyperswitch/Hypercheckout dashboard instead of the Saleor dashboard, you will need to manually update the refund status in the Saleor dashboard.
To access the Juspay Saleor Payment App, . You will be directed to a form where you can enter your Saleor API URL.
Enter your Hyperswitch API key. For instructions on how to create an API Key with Hyperswitch, refer to .
Enter your Hyperswitch Profile ID. For more information on Profile ID, please refer to
Once you save the configuration, You will be provided with a webhook URL, please update it in your
Note: To customize, your payment page. Please contact
Enter your Hypercheckout API key. You can get API key in Hypercheckout dashboard under Payments > Setting > Security
. For more instructions on how to create an API Key, refer to .
Once you save the configuration, you will be provided with a webhook URL, Please update it in your
gatewayReferenceId
: [Optional String] This is used for Indian payments. The id refers to the payment gateway reference id which you configured in hypercheckout dashboard. It becomes mandatory when multiple instances of the same gateway are configured. Sending this id will route the transaction via selected gateway.Refer for details.
Indian Payments: This expects a json object to enable and disable payment options. For more info refer .
Non-Indian Payments: This expects a json array of enums to enable and disable payment options. For more info refer allowed_payment_method_types
in .
You can use clientSecret
and publishableKey
to invoke the
OR
You can use sdkPayload
to invoke the
OR