xendit / xendit-php

Xendit REST API Client for PHP - Card, Virtual Account, Invoice, Disbursement, Recurring Payments, Payout, EWallet, Balance, Retail Outlets Services, xenPlatforms
https://developers.xendit.co/api-reference/
MIT License
153 stars 76 forks source link

[NEW API] Cards Get Token #126

Open nahwinrajan opened 3 years ago

nahwinrajan commented 3 years ago

In regards with cards new API and documentation update we will need new method of \Xendit\Cards::getToken on xendit-php client library.

This issue is request for it.

<?php

  use Xendit\Xendit;
  require 'vendor/autoload.php';

  Xendit::setApiKey('xnd_development_P4qDfOss0OCpl8RtKrROHjaQYNCk9dN5lSfk+R1l9Wbe+rSiCwZ3jw==');

  $id = '605c05d3f81fa60011b2fa4e';
  $getToken = \Xendit\Cards::getToken($id);
  var_dump($getToken);

?>
farhanbashir06 commented 3 years ago

call to undefined function gettoken() ???