Files
youlegames/codes/agent/game/api/payment/ipay/testdemo.php
2026-03-15 01:27:05 +08:00

16 lines
819 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
header("Content-type: text/html; charset=utf-8");
require_once ("base.php");
$respData="transdata={\"transid\":\"32441611021004347926\"}&sign=DxJ5Cw/GTLzT4oEOtzm2bE0Hjb1HPRmXT+OVJj5TRBqC+Zrwdgt7yCW8cbd2IsERqSTlVqQqAx5Bc/ztO6hQVBWZTl7tPZ4jQKs3JOT7r8mcJL6FNCcfItDNZWprcmrTjDZcwsW9+pX+TkP07ouolOg+/sLDC4OE7vu2BURb2mg=&signtype=RSA";
$platpkey="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCWAsHq1iezR1zZzGlmXTX0o88hpuOMWUnCO2iEBHSHVB+WuizLmps89Kz90XFHzqZoYtJ0U1aFSYlcboQZQfp/CelToDCrbXyAu43yVpvKIAkZVEpTPvc61HmhyHT4AnbPZ3H6DmS8ljAb8F/jtihZCdvi4JWWY8eOeRuvz5hwAQIDAQAB";
if(!parseResp($respData, $platpkey, $respJson)) {
echo "failed";
}else{
echo "success";
echo "服务端下单完成trasnid:<br/>";
print_r($respJson);
// 下单成功之后获取 transid
$transid=$respJson->transid;
}
?>