linkPaymentSources
Link payment sources to an SPP customer account
This will link payment sources to the user's SPP customer account
/PaymentServices/SPP/LinkPaymentSources
Usage and SDK Samples
curl -X GET \
-H "Accept: application/json" \
"https://api.dev.spenda.co/api/PaymentServices/SPP/LinkPaymentSources"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsApi;
import java.io.File;
import java.util.*;
public class AccountsApiExample {
public static void main(String[] args) {
// Create an instance of the API class
AccountsApi apiInstance = new AccountsApi();
try {
httpActionResult_linkPaymentSourcesResponse result = apiInstance.linkPaymentSources();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#linkPaymentSources");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
try {
final result = await api_instance.linkPaymentSources();
print(result);
} catch (e) {
print('Exception when calling DefaultApi->linkPaymentSources: $e\n');
}
import org.openapitools.client.api.AccountsApi;
public class AccountsApiExample {
public static void main(String[] args) {
AccountsApi apiInstance = new AccountsApi();
try {
httpActionResult_linkPaymentSourcesResponse result = apiInstance.linkPaymentSources();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#linkPaymentSources");
e.printStackTrace();
}
}
}
// Create an instance of the API class
AccountsApi *apiInstance = [[AccountsApi alloc] init];
// Link payment sources to an SPP customer account
[apiInstance linkPaymentSourcesWithCompletionHandler:
^(httpActionResult_linkPaymentSourcesResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SpendaServicesAprilPayments = require('spenda_services_april_payments');
// Create an instance of the API class
var api = new SpendaServicesAprilPayments.AccountsApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.linkPaymentSources(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class linkPaymentSourcesExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new AccountsApi();
try {
// Link payment sources to an SPP customer account
httpActionResult_linkPaymentSourcesResponse result = apiInstance.linkPaymentSources();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling AccountsApi.linkPaymentSources: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsApi();
try {
$result = $api_instance->linkPaymentSources();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountsApi->linkPaymentSources: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsApi->new();
eval {
my $result = $api_instance->linkPaymentSources();
print Dumper($result);
};
if ($@) {
warn "Exception when calling AccountsApi->linkPaymentSources: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.AccountsApi()
try:
# Link payment sources to an SPP customer account
api_response = api_instance.link_payment_sources()
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountsApi->linkPaymentSources: %s\n" % e)
extern crate AccountsApi;
pub fn main() {
let mut context = AccountsApi::Context::default();
let result = client.linkPaymentSources(&context).wait();
println!("{:?}", result);
}