/** * 银联解绑卡 * 成功返回true!!! * 失败反悔respCd * @param unknown_type $unionUid * @param unknown_type $cardNo */ public function unbind_union_card($unionUid, $cardNo) { $response = $this->unionpay->unbindCard($unionUid, $cardNo); $response = json_decode($response, true); $respCd = $response['respCd']; if ($respCd == '000000') { return true; } else { return $respCd; } }
/** * * 银行卡关闭服务 */ function testUnbindCard() { header('Content-Type:text/html;charset=utf-8 '); $userId = 'c00050001985'; $cardNo = '6222021001128509534'; $response = $this->unionpay->unbindCard($userId, $cardNo); echo $response; }