Ping++ 请求参数中包含的以下字段释义请参考:
Charge
对象时,使用 expand[]=app
参数来展开返回 Charge
对象内部的 app
对象。cp_b2b
渠道时无需传入,在使用其他渠道时必传。curl https://api.pingxx.com/v1/charges/ch_Hm5uTSifDOuTy9iLeLPSurrD?expand[]=app \ -u sk_test_ibbTe5jLGCi5rzfH4OqPW9KC:
\Pingpp\Pingpp::setApiKey('sk_test_ibbTe5jLGCi5rzfH4OqPW9KC');
\Pingpp\Charge::retrieve(array('id' => 'ch_Hm5uTSifDOuTy9iLeLPSurrD', 'expand' => array('app')));
待补充
require "pingpp"
Pingpp.api_key = "sk_test_ibbTe5jLGCi5rzfH4OqPW9KC"
Pingpp::Charge.retrieve(:id => "ch_Hm5uTSifDOuTy9iLeLPSurrD", :expand => ['app'])
var pingpp = require('pingpp')('sk_test_ibbTe5jLGCi5rzfH4OqPW9KC');
pingpp.charges.retrieve(
"ch_Hm5uTSifDOuTy9iLeLPSurrD",
{ expand: ["app"] },
function(err, charge) {
// 异步调用
}
);
import pingpp
pingpp.api_key = 'sk_test_ibbTe5jLGCi5rzfH4OqPW9KC'
ch = pingpp.Charge.retrieve(id='ch_Hm5uTSifDOuTy9iLeLPSurrD', expand='app')
待补充
待补充