Hi,
I'm trying to create custom order page for my site.
I manage to :
Add order using AddOrder API.
create Stripe charge using Stripe genuine API.
Add Payment using AddInvoicePayment
but I can't add or link payment method for client.
I tried using AddPayMethod API, but it gives me error "Unsupported Gateway Type for Storage".
require_once("/var/www/www.addme.com/webroot/my_account/init.php");
$postData = array(
'clientid' => '1001400',
'type' => 'RemoteCreditCard',
'card_number' => '4007000000027',
'card_expiry' => '2023',
'responsetype' => 'json',
'gateway_module_name' => 'stripe',
'set_as_default' => '1'
);
$results = localAPI('AddPayMethod', $postData);
I aware that WHMCS not saving card details anymore for certain payment gateway.
My question is,
how do I link or add payment method for a client?
Thanks