drastik / com.drastikbydesign.stripe

CMS Independent Stripe payment processor for CiviCRM 4.x
Other
35 stars 48 forks source link

You cannot use a Stripe token more than once #264

Open pradpnayak opened 6 years ago

pradpnayak commented 6 years ago

I get following error when i try to do contribution

Error Oops! Looks like there was an error. Payment Response: Type: invalid_request_error Code: token_already_used Message: You cannot use a Stripe token more than once: tok_1DKZGoDqbeqCURmIcq1oz3nQ.

I have a membership sign up for having $50 memberships with auto renewal turned on and i have also enabled 'Separate Contribution' with $20. When i select $50 and $20 and make a payment i get above error. $20 is recorded successfully at Stripe but not $50 which is suppose to be recurring payment.

Is this extension supported to use membership sign up with separate contribution turned on?

mattwire commented 6 years ago

@pradpnayak This extension has now moved to gitlab. "Separate Membership Payment" is not supported by 5.0 without a core PR but the upcoming 5.1 release will support "Separate Membership Payment" without any changes to CiviCRM core. It would be great if you could give this branch some testing: https://lab.civicrm.org/extensions/stripe/tree/5.x_noemail

The main risk is the upgrader (which can be re-run through the API Stripe.customercontactids) as it tries to convert existing customers from being mapped by email to contact ID.

pradpnayak commented 6 years ago

Thanks @mattwire I will give it a try and let you know about it. Its a new setup so I feel it won't have any affect on upgrader.

pradpnayak commented 6 years ago

Hi @mattwire

It did work on CiviCRM 5.6 on Joomla instance, However there few problems

  1. Status was not changed to Completed even though payment was successful. I cross checked with old extension and found stripe doesn't send values in $_REQUEST there fore the older version was using different webhook URL to get data from input file and convert the json response to array. I don't think this is handled in your version of extension.

  2. I had signup for auto renewal membership but in stripe payment processor it wasn't listed under subscription listing. DO you have any idea?

mattwire commented 6 years ago

@pradpnayak Can you open a new issue on https://lab.civicrm.org/extensions/stripe? (The setup you describe is working for me)