Skip to content

Commit

Permalink
chore(create-transaction): use hash token to create order
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis authored Apr 12, 2024
1 parent 937d6a5 commit 5f163e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions/routes/ecom/modules/create-transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ exports.post = async ({ appSdk }, req, res) => {
}
appmaxTransaction.payment = {
"CreditCard": {
"cvv": params.credit_card && params.credit_card.cvv,
"token": params.credit_card && params.credit_card.hash,
"document_number": buyer.doc_number.length > 11
? buyer.doc_number.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/, '$1.$2.$3/$4-$5')
Expand Down

0 comments on commit 5f163e2

Please sign in to comment.