You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my tests with v 2.0.5, the response for the pay (Cashier Payment) request (class AlipayApsPayResponse) always contains a null value for the paymentUrl property, although I can see a normalUrl attribute in the JSON returned by the API:
"normalUrl": "https://open-sea.alipayplus.com/api...".
I think the problem is that the class AlipayApsPayResponse does not contain properties for the possible JSON attributes (schemeUrl/applinkUrl/normalUrl, as stated in the docs). The JSON does not contain an attribute matching paymentUrl, and there is no special handling for the paymentUrl property, that should be filled with the contents of schemeUrl/applinkUrl/normalUrl, according to the specified precedence. I was able to fix the problem by subclassing AlipayApsPayResponse and adding the following code:
In my tests with v 2.0.5, the response for the pay (Cashier Payment) request (class AlipayApsPayResponse) always contains a null value for the paymentUrl property, although I can see a normalUrl attribute in the JSON returned by the API:
"normalUrl": "https://open-sea.alipayplus.com/api...".
I think the problem is that the class AlipayApsPayResponse does not contain properties for the possible JSON attributes (schemeUrl/applinkUrl/normalUrl, as stated in the docs). The JSON does not contain an attribute matching paymentUrl, and there is no special handling for the paymentUrl property, that should be filled with the contents of schemeUrl/applinkUrl/normalUrl, according to the specified precedence. I was able to fix the problem by subclassing AlipayApsPayResponse and adding the following code:
`
private String schemeUrl;
private String applinkUrl;
private String normalUrl;
`
The text was updated successfully, but these errors were encountered: