在商品试用等场景下,商户会要求用户在支付前会提供一张有效的信用卡,此时可以考虑使用0元验卡功能,在确认卡可用的前提下提供更好的用户体验(相比较于1元验卡)
官方文档:https://www.checkout.com/docs/risk-management/card-verification
请求示例
{"source": {"type": "token","token": "tok_yo2zfqgdnn4u7gswjbjmqt5mza"},"currency": "USD"}
返回示例
{"id": "pay_aqwuar5sjb5upkupgywyzapfii","action_id": "act_aqwuar5sjb5upkupgywyzapfii","amount": 0,"currency": "USD","approved": true,"status": "Card Verified","auth_code": "085143","eci": "05","scheme_id": "638284745624527","response_code": "10000","response_summary": "Approved","risk": {"flagged": false},"source": {"id": "src_o67xgoxulgnuhgeaxsdk4cbvgq","type": "card","expiry_month": 9,"expiry_year": 2022,"scheme": "Visa","last4": "4242","fingerprint": "F31828E2BDABAE63EB694903825CDD36041CC6ED461440B81415895855502832","bin": "424242","card_type": "Credit","card_category": "Consumer","issuer": "JPMORGAN CHASE BANK NA","issuer_country": "US","product_id": "A","product_type": "Visa Traditional","avs_check": "S","cvv_check": "","fast_funds": "d","payouts": true},"customer": {"id": "cus_vrdaroxvawlevmxxvhi66thpum"},"processed_on": "2019-01-17T17:41:52Z","_links": {"self": {"href": "https://api.sandbox.checkout.com/payments/pay_aqwuar5sjb5upkupgywyzapfii"},"actions": {"href": "https://api.sandbox.checkout.com/payments/pay_aqwuar5sjb5upkupgywyzapfii/actions"}}}
特殊逻辑
当用户的银行卡不支持0元验卡时,Checkout.com的系统会自动发起一笔1USD授权来验证卡的有效性,并在授权成功后自动发起撤销。
