Skip to content

Commit

Permalink
updates based on comments
Browse files Browse the repository at this point in the history
  • Loading branch information
deryacakmak committed Nov 9, 2023
1 parent e228dad commit 7b2ea6c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/payment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
)

var paymentClient, _ = craftgate.New("api-key", "secret-key", "https://sandbox-api.craftgate.io")
var paymentClient, _ = craftgate.New("sandbox-BMSPbGKBaMOcmOiVpyjDZOIfSzLAuXsb", "sandbox-LpvzxnyrFkOCRRiUpQHUUZUpeQuXNntd", "https://sandbox-api.craftgate.io")

func TestPayment_CreatePayment(t *testing.T) {
request := adapter.CreatePaymentRequest{
Expand Down Expand Up @@ -810,7 +810,7 @@ func TestPayment_InitBnplPayment(t *testing.T) {
PaidPrice: 10000,
PaymentType: craftgate.PaymentType_APM,
Currency: craftgate.Currency_TRY,
ApmOrderId: "order_idfgfgfgfjj",
ApmOrderId: "order_id",
PaymentGroup: craftgate.PaymentGroup_PRODUCT,
ConversationId: "29393-mXld92ko3",
ExternalId: "external_id-345",
Expand All @@ -819,12 +819,12 @@ func TestPayment_InitBnplPayment(t *testing.T) {
Items: []craftgate.PaymentItem{
{
Name: "Item 1",
Price: 3000,
Price: 6000,
ExternalId: "38983903",
},
{
Name: "Item 2",
Price: 7000,
Price: 4000,
ExternalId: "92983294",
},
},
Expand All @@ -834,15 +834,15 @@ func TestPayment_InitBnplPayment(t *testing.T) {
Name: "Test Elektronik 2",
BrandName: "iphone",
Type: craftgate.BnplCartItemType_OTHER,
UnitPrice: 4000,
UnitPrice: 3000,
Quantity: 2,
},
{
Id: "100",
Name: "Test Elektronik 1",
BrandName: "Samsung",
Type: craftgate.BnplCartItemType_MOBILE_PHONE_OVER_5000_TRY,
UnitPrice: 3000,
UnitPrice: 4000,
Quantity: 1,
},
},
Expand Down

0 comments on commit 7b2ea6c

Please sign in to comment.