Building this SDK requires Microsoft Visual Studio 2015 Professional to be installed. Supported target .net46 for now
Find it with nuget with PaysafeSDK
In a file named appsetting.config
:
<?xml version="1.0"?>
<appSettings>
<add key="paysafePaymentApiKey" value="<Your API key>" />
<add key="paysafePaymentApiSecret" value="<Your API secret>" />
<add key="paysafeMerchantId" value="<Your merchand ID>" />
<add key="paysafeDirectDebitMerchantEftId" value="<Your DirectDebit Merchant EFT ID>" />
<add key="paysafeDirectDebitMerchantAchId" value="<Your DirectDebit Merchant ACH ID>" />
</appSettings>
Every test covers the synchronous method and its asynchronous counterpart.
- InvalidRequestException (400)
- InvalidCredentialsException (401)
- RequestDeclinedException (402)
- EntityNotFoundException (404)
- RequestConflictException (409)
- ApiException (500)
- Service monitor
- Managing authorizations
- Card purchase processing
- Managing voiding of authorizations
- Managing settling of card authorizations
- Managing verification of card payments
- Service monitor
- Managing customer profiles
- Managing profile addresses
- Managing customer cards
- Managing ACH bank accounts
- Managing EFT bank accounts
- Processing payments using a payment token
- Refund of pending authorization error
- Service monitor
- Managing purchases
- Processing standalone credits
- Service monitor
- Managing purchases
- Processing standalone credits
- PermissionException (403)
- ApiException (415)
- ApiException (501)
- ApiException (502)
- ApiException (503)
- ApiException (504)
- ApiException (505)
- Approving held auhtorizations
- Cancelling held authorizations
- Managing refunds
- Managing BACS bank accounts
- Managing SEPA bank accounts
- Managing mandates
- Service monitor
- Managing purchases
- Processing standalone credits
- Service monitor
- Managing purchases
- Processing standalone credits
- No test coverage
var returnedPurchase = _eftDirectDebitService.GetPurchase(Purchases.Builder()
.MerchantRefNum(_eftPurchase.MerchantRefNum())
.Build());
var returnedStandaloneCredit = _eftDirectDebitService.GetStandaloneCredits(StandaloneCredits.Builder()
.MerchantRefNum(_standaloneCredit.MerchantRefNum())
.Build());
and their Async equivalents sometimes result empty values, for minutes at a time.
AbstractPagerator.MoveNext()
has not been made async due to the difficulty of an async method that implements IEnumerator.