Skip to content

Commit

Permalink
chore: payment card log
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis authored Apr 1, 2024
1 parent 850ed68 commit 4e6375b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/assets/appmax-hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
})
.then(function (response) {
resolve(response.data.data.data)
resolve(response.data.data.data.token)
})
.catch(reject)
})
Expand Down
2 changes: 1 addition & 1 deletion functions/routes/ecom/modules/create-transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ exports.post = async ({ appSdk }, req, res) => {
}
}
}
console.log('data payment', JSON.stringify(params.credit_card))
appmaxTransaction.payment = {
"CreditCard": {
"token": params.credit_card && params.credit_card.hash,
Expand Down Expand Up @@ -92,7 +93,6 @@ exports.post = async ({ appSdk }, req, res) => {
}
}

// https://docs.pagar.me/reference#criar-transacao
if (quantityItems > 0) {
axios({
url: baseUri,
Expand Down

0 comments on commit 4e6375b

Please sign in to comment.