PHP code example of cihansenturk / omnipay-gocardlessv2
1. Go to this page and download the library: Download cihansenturk/omnipay-gocardlessv2 library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cihansenturk / omnipay-gocardlessv2 example snippets
$customer = $gateway->createCustomer([
'customerData' => array(
'card' => new \Omnipay\Common\CreditCard( // use the standard omnipay card to hold the customer data
[
'firstName' => 'Mike',
'lastName' => 'Jones',
'email' => '[email protected]',
'address1' => 'Iconic Song House, 47 Penny Lane',
'address2' => 'Wavertree',
'city' => 'Liverpool',
'company' => 'Mike Jones Enterprises',
'country' => 'GB',
'postal_code' => 'L18 1DE',
'state' => 'Merseyside',
]
),
'customerMetaData' => [
'meta1' => 'Lorem Ipsom Dolor Est',
'meta2' => 'Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.',
'meta567890123456789012345678901234567890123456789' => 'Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. A small river named Duden flows by their place and supplies it with the necessary regelialia.',
],
'swedishIdentityNumber' => '123',
),
])->send();