Skip to content

Commit

Permalink
valtown bug fixes (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
beratallahverdi authored Oct 24, 2024
1 parent be768c1 commit b62f98c
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ const request = {
]
};

craftgate
.payment()
.initApmPayment(request)
craftgate.payment().initApmPayment(request)
.then(result => console.info('Instant Transfer Apm payment successful', result))
.catch(err => console.error('Failed to create Instant Transfer Apm payment', err));
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ const craftgate = new Craftgate.Client({
baseUrl: 'https://sandbox-api.craftgate.io'
});

craftgate
.payment()
.retrieveActiveBanks()
craftgate.payment().retrieveActiveBanks()
.then(results => console.info('Retrieve instant transfer active banks response ', results))
.catch(err => console.error('Failed to retrieve instant transfer active banks', err));
4 changes: 1 addition & 3 deletions samples/onboarding/CreateBuyer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const request = {
address: 'Suadiye Mah. Örnek Cd. No:23, 34740 Kadıköy/İstanbul'
};

craftgate
.onboarding()
.createMember(request)
craftgate.onboarding().createMember(request)
.then(result => console.info('Buyer member created', result))
.catch(err => console.error('Failed to create buyer member', err));
4 changes: 1 addition & 3 deletions samples/onboarding/CreateMemberAsBuyerAndSubMerchant.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ const request = {
address: 'Suadiye Mah. Örnek Cd. No:23, 34740 Kadıköy/İstanbul'
};

craftgate
.onboarding()
.createMember(request)
craftgate.onboarding().createMember(request)
.then(result => console.info('Member created', result))
.catch(err => console.error('Failed to create member', err));
4 changes: 1 addition & 3 deletions samples/onboarding/CreateSubMerchant.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ const request = {
address: 'Suadiye Mah. Örnek Cd. No:23, 34740 Kadıköy/İstanbul'
};

craftgate
.onboarding()
.createMember(request)
craftgate.onboarding().createMember(request)
.then(result => console.info('Sub merchant member created', result))
.catch(err => console.error('Failed to create sub merchant member', err));
4 changes: 1 addition & 3 deletions samples/onboarding/UpdateBuyer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const request = {
};

// change the memberId (displayed as 1 below) with a valid id to run the sample
craftgate
.onboarding()
.updateMember(1, request)
craftgate.onboarding().updateMember(1, request)
.then(result => console.info('Buyer member updated', result))
.catch(err => console.error('Failed to update buyer member', err));
4 changes: 1 addition & 3 deletions samples/onboarding/UpdateSubMerchant.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ const request = {
};

// change the memberId (displayed as 1 below) with a valid id to run the sample
craftgate
.onboarding()
.updateMember(1, request)
craftgate.onboarding().updateMember(1, request)
.then(result => console.info('Sub merchant member updated', result))
.catch(err => console.error('Failed to update sub merchant member', err));
4 changes: 1 addition & 3 deletions samples/payment/InitKlarnaApmPayment.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ const request = {
}
};

craftgate
.payment()
.initApmPayment(request)
craftgate.payment().initApmPayment(request)
.then(result => console.info('Klarna Apm init payment successful', result))
.catch(err => console.error('Failed to init Klarna Apm payment', err));
4 changes: 1 addition & 3 deletions samples/settlement/CreateInstantWalletSettlement.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ const request = {
excludedSubMerchantMemberIds: [] // you can add member ids for excluding from settlement
};

craftgate
.settlement()
.createInstantWalletSettlement(request)
craftgate.settlement().createInstantWalletSettlement(request)
.then(result => console.info('Instant wallet settlement create response', result))
.catch(err => console.error('Failed to create instant wallet settlement', err));
4 changes: 1 addition & 3 deletions samples/settlement/CreatePayoutAccountForMerchant.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ const request = {
accountOwner: Craftgate.Model.AccountOwner.MERCHANT
};

craftgate
.settlement()
.createPayoutAccount(request)
craftgate.settlement().createPayoutAccount(request)
.then(result => console.info('Payout Account create response', result))
.catch(err => console.error('Failed to create payout account', err));
4 changes: 1 addition & 3 deletions samples/settlement/CreatePayoutAccountForSubMerchant.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ const request = {
subMerchantMemberId: 1
};

craftgate
.settlement()
.createPayoutAccount(request)
craftgate.settlement().createPayoutAccount(request)
.then(result => console.info('Payout Account create response', result))
.catch(err => console.error('Failed to create payout account', err));
4 changes: 1 addition & 3 deletions samples/settlement/DeletePayoutAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ const craftgate = new Craftgate.Client({
baseUrl: 'https://sandbox-api.craftgate.io'
});

craftgate
.settlement()
.deletePayoutAccount(11)
craftgate.settlement().deletePayoutAccount(11)
.catch(err => console.error('Failed to delete payout account', err));
4 changes: 1 addition & 3 deletions samples/settlement/UpdatePayoutAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@ const request = {
externalAccountId: 'wiseRecipientId2'
};

craftgate
.settlement()
.updatePayoutAccount(11, request)
craftgate.settlement().updatePayoutAccount(11, request)
.catch(err => console.error('Failed to update payout account', err));

0 comments on commit b62f98c

Please sign in to comment.