【发布时间】:2018-06-08 18:17:45
【问题描述】:
wepay 支付成功后重定向有问题,这意味着我如何在这个 wepay url 之后重定向
https://stage.wepay.com/status/checkout_complete/1233455
这是我的代码
try {
$data['checkout']= $wepay->request('/checkout/create', array(
'account_id' => $account_id, // ID of the account that you want the money to go to
'amount' => 1, // dollar amount you want to charge the user
'currency' => 'USD',
'short_description' => "this is a test payment", // a short description of what the payment is for
'type' => "goods", // the type of the payment - choose from GOODS SERVICE DONATION or PERSONAL
)
);
// print_r($data['checkout']);
} catch (WePayException $e) { // if the API call returns an error, get the error message for display later
$data['error'] = $e->getMessage();
}
【问题讨论】:
标签: php url redirect payment wepay