Skip to content

Commit

Permalink
fix: use checkout id for pos-purchase call
Browse files Browse the repository at this point in the history
  • Loading branch information
emuvente committed Nov 30, 2023
1 parent 2c70546 commit 38f5574
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion @kiva/kv-shop/src/oneTimeCheckout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,6 @@ export async function executeOneTimeCheckout({
// TODO: redirect needs to handle challenge completion parameters

// redirect to thanks page
window.location.href = `/checkout/post-purchase?kiva_transaction_id=${transactionId}`;
const checkoutId = result.data?.checkoutStatus?.receipt?.checkoutId;
window.location.href = `/checkout/post-purchase?kiva_transaction_id=${checkoutId}`;
}

0 comments on commit 38f5574

Please sign in to comment.