Skip to content

Commit

Permalink
fix: delete stored card endpoint (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
oytunyuksel committed Mar 15, 2023
1 parent d4f739d commit 0f0b8d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapter/payment.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func (api *Payment) UpdateStoredCard(ctx context.Context, request UpdateStoredCa
}

func (api *Payment) DeleteStoredCard(ctx context.Context, request DeleteStoredCardRequest) error {
newRequest, err := api.Client.NewRequest(ctx, http.MethodPost, "/payment/v1/cards", request)
newRequest, err := api.Client.NewRequest(ctx, http.MethodPost, "/payment/v1/cards/delete", request)
if err != nil {
return err
}
Expand Down

0 comments on commit 0f0b8d0

Please sign in to comment.