We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b4e5f commit 8d2c670Copy full SHA for 8d2c670
packages/sails-paystack/machines/checkout.js
@@ -107,12 +107,13 @@ module.exports = require('machine').build({
107
exits
108
) {
109
const adapterConfig = require('../adapter').config
110
+ const resolvedCallbackUrl = callbackUrl || adapterConfig.callbackUrl
111
const payload = JSON.stringify({
112
amount,
113
email,
114
currency,
115
reference,
- callback_url: callbackUrl,
116
+ ...(resolvedCallbackUrl && { callback_url: resolvedCallbackUrl }),
117
plan,
118
invoice_limit: invoiceLimit,
119
metadata,
0 commit comments