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)); }
public async Task <ChargeResponse> Init3DS(ChargeRequestBase request) { return(await _serviceHelper.Post <ChargeResponse, ChargeRequestBase>(request, "charges/3ds", overrideConfigSecretKey : _overrideConfigSecretKey)); }
public async Task <CustomerResponse> Add(CustomerRequest request) { return(await _serviceHelper.Post <CustomerResponse, CustomerRequest>(request, "customers", overrideConfigSecretKey : _overrideConfigSecretKey)); }
public async Task <NotificationTemplateResponse> AddTemplate(NotificationTemplateRequest request) { return(await _serviceHelper.Post <NotificationTemplateResponse, NotificationTemplateRequest>(request, "notifications/templates", overrideConfigSecretKey : _overrideConfigSecretKey)); }
public async Task <VaultResponse> Create(VaultRequest request) { return(await _serviceHelper.Post <VaultResponse, VaultRequest>(request, "vault/payment_sources", overrideConfigSecretKey : _overrideConfigSecretKey)); }
public async Task <ExternalCheckoutResponse> Create(ExternalCheckoutRequest request) { return(await _serviceHelper.Post <ExternalCheckoutResponse, ExternalCheckoutRequest>(request, "payment_sources/external_checkout", overrideConfigSecretKey : _overrideConfigSecretKey)); }
public async Task <GatewayResponse> Add(GatewayRequest request) { return(await _serviceHelper.Post <GatewayResponse, GatewayRequest>(request, "gateways", overrideConfigSecretKey : _overrideConfigSecretKey)); }
public async Task <SubscriptionResponse> Add(SubscriptionRequest request) { return(await _serviceHelper.Post <SubscriptionResponse, SubscriptionRequest>(request, "subscriptions", overrideConfigSecretKey : _overrideConfigSecretKey)); }