Пример #1
0
        public async Task <TokenResponse> Create(TokenRequest request)
        {
            var publicKey = Config.PublicKey;

            if (!string.IsNullOrEmpty(_overrideConfigPublicKey))
            {
                publicKey = _overrideConfigPublicKey;
            }

            var url = "payment_sources/tokens?public_key=" + Uri.EscapeUriString(publicKey);

            return(await _serviceHelper.Post <TokenResponse, TokenRequest>(request, url, excludeSecretKey : true));
        }
Пример #2
0
 public async Task <ChargeResponse> Init3DS(ChargeRequestBase request)
 {
     return(await _serviceHelper.Post <ChargeResponse, ChargeRequestBase>(request, "charges/3ds", overrideConfigSecretKey : _overrideConfigSecretKey));
 }
Пример #3
0
 public async Task <CustomerResponse> Add(CustomerRequest request)
 {
     return(await _serviceHelper.Post <CustomerResponse, CustomerRequest>(request, "customers", overrideConfigSecretKey : _overrideConfigSecretKey));
 }
Пример #4
0
 public async Task <NotificationTemplateResponse> AddTemplate(NotificationTemplateRequest request)
 {
     return(await _serviceHelper.Post <NotificationTemplateResponse, NotificationTemplateRequest>(request, "notifications/templates", overrideConfigSecretKey : _overrideConfigSecretKey));
 }
Пример #5
0
 public async Task <VaultResponse> Create(VaultRequest request)
 {
     return(await _serviceHelper.Post <VaultResponse, VaultRequest>(request, "vault/payment_sources", overrideConfigSecretKey : _overrideConfigSecretKey));
 }
Пример #6
0
 public async Task <ExternalCheckoutResponse> Create(ExternalCheckoutRequest request)
 {
     return(await _serviceHelper.Post <ExternalCheckoutResponse, ExternalCheckoutRequest>(request, "payment_sources/external_checkout", overrideConfigSecretKey : _overrideConfigSecretKey));
 }
Пример #7
0
 public async Task <GatewayResponse> Add(GatewayRequest request)
 {
     return(await _serviceHelper.Post <GatewayResponse, GatewayRequest>(request, "gateways", overrideConfigSecretKey : _overrideConfigSecretKey));
 }
Пример #8
0
 public async Task <SubscriptionResponse> Add(SubscriptionRequest request)
 {
     return(await _serviceHelper.Post <SubscriptionResponse, SubscriptionRequest>(request, "subscriptions", overrideConfigSecretKey : _overrideConfigSecretKey));
 }