Skip to content

Commit

Permalink
chore: remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis authored Feb 7, 2024
1 parent 476df8d commit fb68891
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions functions/assets/onload-expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,6 @@
cvv: cardClient.cvc
}

if (storeId == 8192) {
function success(data) {
console.log(data)
if (data.id) {
resolve(data.id)
}
throw new Error('Credencial inválida')
};

function fail(error) {
console.log('store id error', error)
reject(error)
};

PagarmeCheckout.init(success,fail)
}

const resp = await fetch(
`https://api.pagar.me/core/v5/tokens?appId=${apiKey}`,
{
Expand Down

0 comments on commit fb68891

Please sign in to comment.