Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

卡片功能 #16

Open
dcb9 opened this issue Apr 19, 2016 · 0 comments
Open

卡片功能 #16

dcb9 opened this issue Apr 19, 2016 · 0 comments
Milestone

Comments

@dcb9
Copy link
Contributor

dcb9 commented Apr 19, 2016

查询卡片信息

\Pingpp\CardInfo::query(array(
    'app' => 'APP_ID',
    'card_number' => 'ENCRYPTED_CARD_NUMBER'
));

创建 card

$cus = \Pingpp\Customer::retrieve('CUS_ID');
$cus->sources->create(array(
    'source' => 'TOKEN_ID'
));

查询 card

$cus = \Pingpp\Customer::retrieve('CUS_ID');
$card = $cus->sources->retrieve('CARD_ID');

删除 card

$cus = \Pingpp\Customer::retrieve('CUS_ID');
$cus->sources->retrieve('CARD_ID')->delete();
@dcb9 dcb9 added this to the v1.2 milestone Apr 19, 2016
@dcb9 dcb9 modified the milestones: v1.3, v1.2 May 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant