forked from crowetic/commerce
Fixed BigCommerce Checkout SSO redirect_to issue (#594)
This commit is contained in:
parent
d65b2efe9a
commit
647b06cb52
@ -42,7 +42,7 @@ const getCheckout: CheckoutEndpoint['handlers']['getCheckout'] = async ({
|
|||||||
store_hash: config.storeHash,
|
store_hash: config.storeHash,
|
||||||
customer_id: customerId,
|
customer_id: customerId,
|
||||||
channel_id: config.storeChannelId,
|
channel_id: config.storeChannelId,
|
||||||
redirect_to: data.checkout_url,
|
redirect_to: data.checkout_url.replace(config.storeUrl, ""),
|
||||||
}
|
}
|
||||||
let token = jwt.sign(payload, config.storeApiClientSecret!, {
|
let token = jwt.sign(payload, config.storeApiClientSecret!, {
|
||||||
algorithm: 'HS256',
|
algorithm: 'HS256',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user