Skip to content

Commit

Permalink
removed issuer string in idempotency_test and readme_test (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
DjoykeAbyah authored Jul 18, 2024
1 parent 7c41c33 commit 3bb8288
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Binary file added adyen-go-api-library
Binary file not shown.
4 changes: 1 addition & 3 deletions tests/checkout/idempotency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ func Test_Checkout_Idempotency_Race(t *testing.T) {
defer cancel()
body := checkout.PaymentRequest{
Reference: ref,
PaymentMethod: checkout.IdealDetailsAsCheckoutPaymentMethod(&checkout.IdealDetails{
Issuer: "1121",
}),
PaymentMethod: checkout.IdealDetailsAsCheckoutPaymentMethod(&checkout.IdealDetails{}),
}
req := service.PaymentsApi.PaymentsInput().IdempotencyKey(idempotencyKey).PaymentRequest(body)
_, _, err := service.PaymentsApi.Payments(ctx, req)
Expand Down
2 changes: 1 addition & 1 deletion tests/readme_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func ExampleError() {
service := client.Checkout()

req := service.PaymentsApi.PaymentsInput()
paymentMethod := checkout.IdealDetailsAsCheckoutPaymentMethod(checkout.NewIdealDetails("1121"))
paymentMethod := checkout.IdealDetailsAsCheckoutPaymentMethod(checkout.NewIdealDetails())
_, httpRes, err := service.PaymentsApi.Payments(context.Background(), req.PaymentRequest(checkout.PaymentRequest{
Reference: "123456781235",
Amount: checkout.Amount{
Expand Down

0 comments on commit 3bb8288

Please sign in to comment.