Skip to content

Commit

Permalink
chore(postback): log status from postback
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis authored Oct 10, 2023
1 parent cc2f917 commit e661306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/routes/pagarme/postback.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ exports.post = ({ appSdk }, req, res) => {
const orderId = pagarmeTransaction.metadata.order_id

if (storeId > 100 && /^[a-f0-9]{24}$/.test(orderId)) {
console.log('> Postback #', storeId, orderId)
console.log('> Postback #', storeId, orderId, (req.body.current_status || pagarmeTransaction.status))
// read configured E-Com Plus app data
return getAppData({ appSdk, storeId })
.then(config => {
Expand Down

0 comments on commit e661306

Please sign in to comment.