示例#1
0
<?php

$res = \AlternativePayments\Plan::getAll();
var_dump($res);
示例#2
0
<?php

$res = \AlternativePayments\Plan::get("pln_fhdskhfdsjkerui8");
var_dump($res);
示例#3
0
<?php

$plan = new \AlternativePayments\Model\Plan();
$plan->setMerchantIdentification("VIP");
$plan->setInterval(5);
$plan->setPeriod("Day");
$plan->setAmount(445);
$plan->setCurrency("EUR");
$plan->setName("Test plan");
$plan->setDescription("Test Plan");
$res = \AlternativePayments\Plan::post($plan);
var_dump($res);