Skip to content

Payment kalixa

Hub Culture edited this page Aug 10, 2018 · 1 revision
We pass authorization (if necessary)
hubid()->auth(['email' => 'test@hubculture.com', 'password' => 'mypass']);
Get a list of possible payment methods
$paymentmethods = hubid()->request('get', '/kalixa/paymentmethods')->getContent();
Make payment (in the example used VISA Deposit and buy 50 Ven)
$options = [
  'ven' => 50,
  'PaymentMethodId' => $paymentmethods['data'][2]['id'], # VISA Deposit
  'dateOfBirth' => '1993-07-28',
  'streetAdress' => 'street',
  'houseNumber' => '32d',
  'telephoneNumber' => 380557841256,
  'city' => 'kiev',
  'countryCode2' => 'AT',
  'cardNumber' => '4111-1111-1111-1111',
  'cardHolder' => 'Ciquar Smith',
  'cardExpirationDate' => '2020-01',
  'cardCCV' => 111,
];

$response = hubid()->request('post', '/kalixa/send', $options)->getContent();

if ($response['status']) {
  // payment 50 Ven successful
}

What is the function of hubid()?

Clone this wiki locally