Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add enabledInstallment field to Garanti Pay Init Request #200

Merged
merged 7 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Craftgate/Model/WebhookEventType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public enum WebhookEventType
[EnumMember(Value = "WALLET_CREATED")] WALLET_CREATED,
[EnumMember(Value = "WALLET_TX_CREATED")] WALLET_TX_CREATED,
[EnumMember(Value = "BNPL_NOTIFICATION")] BNPL_NOTIFICATION,
[EnumMember(Value = "BANK_ACCOUNT_TRACKING_RECORD")] BANK_ACCOUNT_TRACKING_RECORD
[EnumMember(Value = "BANK_ACCOUNT_TRACKING_RECORD")] BANK_ACCOUNT_TRACKING_RECORD,
[EnumMember(Value = "BKM_EXPRESS_PAYMENT_NOTIFICATION")] BKM_EXPRESS_PAYMENT_NOTIFICATION,
[EnumMember(Value = "MULTI_PAYMENT_COMPLETED")] MULTI_PAYMENT_COMPLETED
}
}
1 change: 1 addition & 0 deletions Craftgate/Request/InitGarantiPayPaymentRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ public class InitGarantiPayPaymentRequest
public string BankOrderId { get; set; }
public IList<PaymentItem> Items { get; set; }
public List<GarantiPayInstallment> Installments { get; set; }
public IList<int> EnabledInstallments { get; set; }
}
}
1 change: 1 addition & 0 deletions Samples/PaymentSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,7 @@ public void Init_GarantiPay_Payment()
Currency = Currency.TRY,
PaymentGroup = PaymentGroup.LISTING_OR_SUBSCRIPTION,
CallbackUrl = "https://www.your-website.com/craftgate-garantipay-callback",
EnabledInstallments = new List<int> {2, 3},
Items = new List<PaymentItem>
{
new PaymentItem
Expand Down
Loading