Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
deryacakmak committed Oct 15, 2024
1 parent bffd5fc commit e333767
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions tests/payment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ var paymentClient, _ = craftgate.New("api-key", "secret-key", "https://sandbox-a

func TestPayment_CreatePayment(t *testing.T) {
request := adapter.CreatePaymentRequest{
Price: 1.25,
PaidPrice: 1.25,
Installment: 1,
Currency: craftgate.Currency_TRY,
PaymentGroup: craftgate.PaymentGroup_LISTING_OR_SUBSCRIPTION,
ConversationId: "foo-bar",
ExternalId: "115",
EnabledInstallments: []int{1, 2},
Price: 1.25,
PaidPrice: 1.25,
Installment: 1,
Currency: craftgate.Currency_TRY,
PaymentGroup: craftgate.PaymentGroup_LISTING_OR_SUBSCRIPTION,
ConversationId: "foo-bar",
ExternalId: "115",
Card: &craftgate.Card{
CardHolderName: "Card Holder",
CardNumber: "4256690000000001",
Expand Down Expand Up @@ -333,12 +332,13 @@ func TestPayment_InitDepositApmPayment(t *testing.T) {

func TestPayment_InitGarantiPayPayment(t *testing.T) {
request := adapter.InitGarantiPayPaymentRequest{
Price: 100,
PaidPrice: 100,
Currency: craftgate.Currency_TRY,
PaymentGroup: craftgate.PaymentGroup_LISTING_OR_SUBSCRIPTION,
ConversationId: "456d1297-908e-4bd6-a13b-4be31a6e47d5",
CallbackUrl: "https://www.your-website.com/craftgate-garantipay-callback",
Price: 100,
PaidPrice: 100,
Currency: craftgate.Currency_TRY,
PaymentGroup: craftgate.PaymentGroup_LISTING_OR_SUBSCRIPTION,
ConversationId: "456d1297-908e-4bd6-a13b-4be31a6e47d5",
CallbackUrl: "https://www.your-website.com/craftgate-garantipay-callback",
EnabledInstallments: []int{1, 2},
Items: []craftgate.PaymentItem{
{
Name: "Item 1",
Expand Down

0 comments on commit e333767

Please sign in to comment.