java - Cannot create subscription using Braintree Payment Nonce -


I am using a Braintree payment non to create recurring subscription requests. The code below is that I have to make a subscription. I am using a payment non-receipt from the customer but the membership request fails with a message "Invalid payment method is invalid."

Any help / indicators will be highly appreciated.

  membership request request = new subscription request () PaymentMethodNonce (customer.getPaymentNonce ()) .planId (customer.getPlan (.) GetBraintreePlanId ()); Results & lt; Membership & gt; Result = Gateway () Membership (). Create (request);  

I work in braintree if you have more questions, then I I suggest you

Unfortunately "payment is invalid without validation" the verification error is currently inappropriate; It should be fixed soon.

This error means that no one was found, because it is not existing, is locked, is already being used, not indicated for weighted card, etc. In your example, the customer.getPaymentNonce () is probably not returning the valid payment method, make sure it was created with a customer ID and domed, and that you have more than one Are not trying to use the same time.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -