-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dušan Bobičić
committed
Oct 1, 2024
1 parent
7adc4b2
commit 5451d8a
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...les/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/ChangePaymentMethodHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Svea.WebPay.SDK; | ||
using Svea.WebPay.SDK.CheckoutApi.Recurring; | ||
|
||
namespace Sample.Testshop.Server.Modules.Checkout | ||
{ | ||
public static class ChangePaymentMethodHandler | ||
{ | ||
public static async Task<ChangePaymentMethodResponse> Handle(string token, ChangepaymentMethodModel request, SveaWebPayClient sveaWebPayClient) | ||
{ | ||
var response = await sveaWebPayClient.Checkout.Recurring.ChangePaymentMethodAsync(request, token); | ||
return response; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters