Bare-bones app for testing Saleor's Transactions API
Tip
Questions or issues? Check our discord channel for help.
The Dummy Payment App allows you to test Saleor's payment and checkout features without needing to set up a real payment provider. You can create orders, process payments, issue refunds, and more, all within the Saleor Dashboard.
- Create new checkouts and orders from the Saleor Dashboard:
- Process payments and update transaction statuses:
Tip
Each Transaction has externalUrl
that links to this page from Order details page in Saleor Dashboard:
- Issue refunds, process charges and cancellations for Transactions
The Dummy Payment App supports the following webhooks to enable payment flows:
The app implements webhooks to process payments initiated from your storefront:
PAYMENT_GATEWAY_INITIALIZE_SESSION
TRANSACTION_INITIALIZE_SESSION
TRANSACTION_PROCESS_SESSION
It also implements webhooks to allow updating the status of Transactions from the Saleor Dashboard, similar to how a real third-party payment provider would:
TRANSACTION_REFUND_REQUESTED
TRANSACTION_CHARGE_REQUESTED
TRANSACTION_CANCELATION_REQUESTED
After installing the app in Saleor, visit the app's Dashboard.
There you can create a Checkout, a set shipping method on that checkout.
After that step is completed you can initialize a Transaction using transactionInitialize
mutation. App's response to that mutation can be modified using provided input.
The checkout process in app looks like this:
- Select channel where you want to create the Checkout
- Click "Create checkout" to create Checkout in Saleor in your selected channel
- Click "Set delivery" to set delivery method on that checkout
- Set response you want the app to return for
TRANSACTION_INITIALIZE_SESSION
- Click "Initialize transaction"
- Wait until response is returned and click "Complete checkout" to send
checkoutComplete
mutation
- Apps guide - learn more how to build your own Saleor app
- Transactions API - learn how to use Transactions API in your store
- Payment App webhooks - learn how to build your own Payment App
You can find docs about App development in the Saleor documentation.
Please open GitHub issues if you find any problem with this app. PRs are welcome too 😄
You can find help with Saleor in these places:
- App logo: Lucide