com.drastikbydesign.stripe icon indicating copy to clipboard operation
com.drastikbydesign.stripe copied to clipboard

Error on recurring donations "Received unknown parameter: name"

Open danielstrum opened this issue 7 years ago • 12 comments

Hi... This is a brand new CiviCRM installation on a Wordpress 4.9.4 site. Everything except Recurring donations works fine. On recurring donations, I get the error: Received unknown parameter: name

Using API version 2018-02-06 and extension version 4.7.3.

Thanks for the great extension... I use it on 3 other sites I manage.

danielstrum avatar Feb 23 '18 13:02 danielstrum

Hmmm.... Looking at the API changelog I see from the 2018-02-05 upgrade:

Major Each plan object is now linked to a product object with type=service. The plan object fields statement_descriptor and name attributes have been moved to product objects. Creating a plan now requires passing a product attribute to POST /v1/plans. This may be either an existing product ID or a dictionary of product fields, so that you may continue to create plans without separately creating products.

danielstrum avatar Feb 23 '18 13:02 danielstrum

Just trying this out and hit same error. Can hopefully get some digging done later today

petednz avatar Feb 26 '18 01:02 petednz

Thank You!

danielstrum avatar Feb 26 '18 01:02 danielstrum

Logs showed: /sites/default/civicrm/extensions/com.drastikbydesign.stripe/CRM/Stripe/Page/Webhook.php(83): CRM_Core_Error::fatal("Stripe Callback: cannot json_decode data, exiting.

On my site i was testing recurring and had not set the Webhook Endpoint per the instructions. Having done that I no longer get the error and I see a payment in stripe.

I don't see anything in stripe that suggests that payment is a recurring payment - but i might let that sit and see what happens tomorrow.

@danielstrum did you have your webhook set?

petednz avatar Feb 26 '18 01:02 petednz

Hmm just put another through and got same error. Noting that the one that didn't fail shows in civicrm as not recurring so maybe i mis set the page

petednz avatar Feb 26 '18 01:02 petednz

Yes... I set my Webhook Endpoint. Did you see the changelog for the API that I noted above (my first comment).

Major Each plan object is now linked to a product object with type=service. The plan object fields statement_descriptor and name attributes have been moved to product objects. Creating a plan now requires passing a product attribute to POST /v1/plans. This may be either an existing product ID or a dictionary of product fields, so that you may continue to create plans without separately creating products.

danielstrum avatar Feb 26 '18 02:02 danielstrum

Yes - will get @jitendrapurohit to take a look when he clocks in

petednz avatar Feb 26 '18 02:02 petednz

Yes, this seems to fix the issue. Thanks!

danielstrum avatar Feb 26 '18 12:02 danielstrum

I'm new to CiviCRM and this extension both -- I'm on version 4.7.3 and getting this error. Just wanted to be clear on whether or not it should be fixed in 4.7.3, or if I need to install 4.7-dev to get around the error? Thanks.

mpwoodward avatar Jul 28 '18 18:07 mpwoodward

Never mind -- installed 4.7-dev and it's working now. Some wrinkles with the confirmation page and email receipt in live mode (works in test) but that probably isn't related to the Stripe extension. Thanks for your work on this!

mpwoodward avatar Jul 29 '18 15:07 mpwoodward

Hi all, I'm encountering the same error on version 4.7.3 of the extension. Are you all using 4.7-dev on your production sites to get past this error? Any idea when we can expect a new official release?

highfalutin avatar Aug 13 '18 18:08 highfalutin

I'm using 4.7-dev in production and it's working fine.

mwoodward-atd avatar Aug 17 '18 22:08 mwoodward-atd