Skip to content

Commit

Permalink
Add enabledInstallment field to Garanti Pay Init Request
Browse files Browse the repository at this point in the history
  • Loading branch information
deryacakmak committed Oct 14, 2024
1 parent 436dce4 commit 3cc4673
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions samples/payment/InitGarantiPayPayment.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const request = {
totalPrice: 125
}
],
enabledInstallments: [2,3],
conversationId: '456d1297-908e-4bd6-a13b-4be31a6e47d5',
currency: Craftgate.Model.Currency.TRY,
paymentGroup: Craftgate.Model.PaymentGroup.ListingOrSubscription,
Expand Down
4 changes: 3 additions & 1 deletion src/model/WebhookEventType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ enum WebhookEventType {
Autopilot = 'AUTOPILOT',
WalletCreated = 'WALLET_CREATED',
WalletTxCreated = 'WALLET_TX_CREATED',
BnplNotification = 'BNPL_NOTIFICATION'
BnplNotification = 'BNPL_NOTIFICATION',
MULTI_PAYMENT_COMPLETED = 'MULTI_PAYMENT_COMPLETED',
BKM_EXPRESS_PAYMENT_NOTIFICATION = 'BKM_EXPRESS_PAYMENT_NOTIFICATION'
}

export default WebhookEventType;
1 change: 1 addition & 0 deletions src/request/InitGarantiPayPaymentRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type InitGarantiPayPaymentRequest = {
bankOrderId?: string;
posAlias?: string;
items: PaymentItem[];
enabledInstallments: number[];
};

export default InitGarantiPayPaymentRequest;

0 comments on commit 3cc4673

Please sign in to comment.