本次集成支付宝采用了最高规格的RSA2证书版本,折腾了许久,踩了一堆坑。也算是暂时接通了一下即时到账接口。采用RSA2证书版,主要是看中转帐功能。
查看效果:https://i.zuime.com
说明:本次实验的是直接下单,到支付宝支付,返回。这条线是通的。
采坑记录:
返回错误:
{“alipay_trade_query_response”:{“code”:”40006″,”msg”:”Insufficient Permissions”,”sub_code”:”isv.insufficient-isv-permissions”,”sub_msg”:”ISV权限不足,建议在开发者中心检查应用是否上线”},”alipay_cert_sn”:”d129f75444e247d1fd7641eca25e8e8e”,”sign”:”T0OOwb6ij+QLwMYDeGyt5gTnopwth0RyyskjE2/OVd8mPNvDAEfcWHqtZ3eYRXwTTsKjKJZ9HceCXHtc8ZpjG4BJMVjDWO3MrOxXSEnBgPKZOIAS/2zL7EDrruaEc78CewFf5Id0IkY+tRTI61DaETuspfxF6JaZnu25n2qVc55H32GOFnWl3EWE6rS2nBgVBxGQKBo/KasOeafaJMuxP6/cLm4nLVO57bdcMwiZP+eNHNWurFru2AXyWELLrJdyjyQMqEri13SPdcrd0S3L+vA0KyC/bPavPAObJFKhVO1Z2xQ5YZBpYh6cOha8Mhd59s99CzlkuB/Zz6qvNvaVkw==”}
问题:
蚂蚁金服沙箱测试:无效的AppID参数
https://blog.csdn.net/JinglongSource/article/details/88703105
{“alipay_trade_query_response”:{“code”:”40002″,”msg”:”Invalid Arguments”,”sub_code”:”isv.app-cert-not-exist”,”sub_msg”:”应用公钥证书不存在”}}
{“alipay_trade_query_response”:{“code”:”40004″,”msg”:”Business Failed”,”sub_code”:”ACQ.INVALID_PARAMETER”,”sub_msg”:”参数无效”},”alipay_cert_sn”:”d129f75444e247d1fd7641eca25e8e8e”,”sign”:”FyFMLDXe7mnjI61eTVeMdsQLPYm4kdrGbWuPPu1vWDzryusC/NPD2K+pHzDdU9/0BHsImaejLbbcrs4Im+CbEEtB98I0L72nwG9mktx3ZM3OAqJ933cQPjc9xKv8d5aWU61kIzPjc19nBciGtdwUQqHPMus1V1egoMNl+DHt4F73ckEGe+j0VsXxRorj0iONEnGLwVg3sgcqwUVyxgelibcWCE5UNULZvBpTo88AXu07hnYQ9Bi9Amtuv7og8jPcGmPE8x874eblJDZWW8DNmLTZB5KMNYJb+LG1lfMBUK9cmzS/L5hQk7lp17D5cr1HMA9CBKgX7rQ27+V4kZ07jA==”}
{“alipay_trade_query_response”:{“code”:”40004″,”msg”:”Business Failed”,”sub_code”:”ACQ.INVALID_PARAMETER”,”sub_msg”:”参数无效:支付宝订单号和外部订单号不能同时为空”,”buyer_pay_amount”:”0.00″,”invoice_amount”:”0.00″,”point_amount”:”0.00″,”receipt_amount”:”0.00″},”alipay_cert_sn”:”d129f75444e247d1fd7641eca25e8e8e”,”sign”:”pfAb0deXjEFFIUhm56wCwZtbGc2Hw49glCp5zILfOIUxtmWUnSEJIGTRw2t/NMbbJNUmdJDgN2KB0+Mbek4LjtkBzvKdpjjR9dGNmEQHHkm+0aNdjVfjaKHJSq8mY6pseXelLKhFbGZCXwZ8MjXX/0njpFNRqUWEkyz0XsxDurfWtQWUKU7n4COB1qi7SsqEML07/AxGzQvAHwB4CJz4MNNUmqqSumwg9eHcOkDUcISYR+9nESQ3ob1f6l0IRX19ycMuPkLS+Nsm8gOBGinxtEkEASjvRsVFb85Z46f8I9EHl1E3+S1eqAmB1oY6kirOrFQAZMhhzrPodN8ksP2YnA==”}
The attribute value is undefined for the annotation type JSONField
{“alipay_trade_query_response”:{“code”:”40004″,”msg”:”Business Failed”,”sub_code”:”ACQ.TRADE_NOT_EXIST”,”sub_msg”:”交易不存在”,”buyer_pay_amount”:”0.00″,”invoice_amount”:”0.00″,”out_trade_no”:”Test1568206863310″,”point_amount”:”0.00″,”receipt_amount”:”0.00″},”alipay_cert_sn”:”d129f75444e247d1fd7641eca25e8e8e”,”sign”:”OPDujMVlLZbyxgbkNI9Mq+wunxBbIYrYoMxc+QcNVUY91whTIKePgly6AsZkd4pZA6hHf7y0uRvYcuGnAVGB5jBxmnMo+H8lcBkHySeLLMeQqeJPkejOo/3BJtYIb2ccMffdZ6MWFZd1fGlCsBEG8QD9mGUyA2K9vB3ooZqcgvI+2jWV0iFBVkzAYsYZk938pmjpFHEtLFDrqCGIc/6Bae6oO1Yfguk8RaAnB91fqVD+3Pli46/oLK7HVHTBlmBSf6NzzE05ijZgp1G4l9POAfN6RXMHu46oNx1fuC5HGfS4ySKsJ2H5Cj9rlXr8m/mZ7pLRplgLYKWq9xEzCFciPQ==”}
明天再续~~