在成功的javascript事件中,我收到了来自付款网关服务器的响应,并在获得响应后尝试处理付款。请对此提供建议。
//plugin class
<script>
var success = function(response){
// response.transaction_id,response.status="approved"
// redirect to process payment
},
var error = function(response){
}
</script>
function process_payment($order_id){
}