Skip to content

Commit 5c1ecca

Browse files
committed
fix(pagaleve): Properly awaiting create transaction request to Pagaleve API
1 parent 9b46e2c commit 5c1ecca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/apps/pagaleve/src/pagaleve-create-transaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const pagaleveCreateTransaction = async (body: AppModuleBody<'create_transaction
111111
if (totalQuantity > 0) {
112112
try {
113113
await pagaleve.preparing;
114-
const { data } = pagaleve.axios.post('/v1/checkouts', pagaleveTransaction, {
114+
const { data } = await pagaleve.axios.post('/v1/checkouts', pagaleveTransaction, {
115115
maxRedirects: 0,
116116
});
117117
transaction.payment_link = data.redirect_url || data.checkout_url;

0 commit comments

Comments
 (0)