From 7b2ea6cc7d9750f8acafdf7f1ddce4b9fe5b69ae Mon Sep 17 00:00:00 2001 From: Derya Cakmak <97deryacakmak@gmail.com> Date: Thu, 9 Nov 2023 16:22:33 +0300 Subject: [PATCH] updates based on comments --- tests/payment_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/payment_test.go b/tests/payment_test.go index 4c8e837..9755165 100644 --- a/tests/payment_test.go +++ b/tests/payment_test.go @@ -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{ @@ -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", @@ -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", }, }, @@ -834,7 +834,7 @@ func TestPayment_InitBnplPayment(t *testing.T) { Name: "Test Elektronik 2", BrandName: "iphone", Type: craftgate.BnplCartItemType_OTHER, - UnitPrice: 4000, + UnitPrice: 3000, Quantity: 2, }, { @@ -842,7 +842,7 @@ func TestPayment_InitBnplPayment(t *testing.T) { Name: "Test Elektronik 1", BrandName: "Samsung", Type: craftgate.BnplCartItemType_MOBILE_PHONE_OVER_5000_TRY, - UnitPrice: 3000, + UnitPrice: 4000, Quantity: 1, }, },