Skip to content

Commit

Permalink
fix(pagaleve): Properly awaiting create transaction request to Pagale…
Browse files Browse the repository at this point in the history
…ve API
  • Loading branch information
leomp12 committed Nov 11, 2024
1 parent 9b46e2c commit 5c1ecca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/apps/pagaleve/src/pagaleve-create-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const pagaleveCreateTransaction = async (body: AppModuleBody<'create_transaction
if (totalQuantity > 0) {
try {
await pagaleve.preparing;
const { data } = pagaleve.axios.post('/v1/checkouts', pagaleveTransaction, {
const { data } = await pagaleve.axios.post('/v1/checkouts', pagaleveTransaction, {
maxRedirects: 0,
});
transaction.payment_link = data.redirect_url || data.checkout_url;
Expand Down

0 comments on commit 5c1ecca

Please sign in to comment.