Skip to content

Commit

Permalink
Merge branch 'hotfix/1.2.3' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
otech47 committed Jul 16, 2021
2 parents 46fc11f + 52c9abb commit d273d51
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/modules/clientManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const clientManagement = module.exports = (() => {

const clientInformation = {
email: stripeCustomerObject.email,
currency: stripeCustomerObject.currency || 'SATS',
currency: stripeCustomerObject.currency.toUpperCase() || 'SATS',
name: stripeCustomerObject.name,
external_uuid: stripeCustomerObject.id,
is_active: 1
Expand Down
16 changes: 16 additions & 0 deletions api/tests/stripeWebhookTest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const apiModules = require('../modules')

const runTest = () => {
try {
apiModules.clientManagement.updateClientFromStripeCustomer({
stripeCustomerObject: {

}
})
} catch (err) {
console.log('error')
console.log(err)
}
}

runTest()

0 comments on commit d273d51

Please sign in to comment.