# Stripe Plugin, Error on Create Payment Intent

**URL:** <https://forum.bubble.io/t/stripe-plugin-error-on-create-payment-intent/233242>\
**Category:** Plugins\
**Created:** [November 19, 2022, 9:19pm UTC](https://forum.bubble.io/t/stripe-plugin-error-on-create-payment-intent/233242 "2022-11-19T21:19:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maggie](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/maggie/32/260576_2.png) [@maggie](https://forum.bubble.io/u/maggie)\
**Post date:** [November 19, 2022, 9:19pm UTC](https://forum.bubble.io/t/stripe-plugin-error-on-create-payment-intent/233242/1 "2022-11-19T21:19:32Z")

</div>

I keep getting the following error message when submitting a payment test (4242 card) using the Copilot Stripe 2 plugin:

Plugin action Stripe.js - PaymentIntent - Create error:  
TypeError: Cannot read property ‘data’ of undefined  
at eval (eval at build\_function (/var/task/index.js:53:12), :116:44)  
at /var/task/index.js:519:17  
at run\_fn (/var/task/u.js:645:18)

The plugin IS successfully creating the payment intention however and posting it to Stripe. Anyone else had this issue and figured out a fix?

---

<div class="post-metadata">

**Author:** ![maggie](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/maggie/32/260576_2.png) [@maggie](https://forum.bubble.io/u/maggie)\
**Post date:** [November 19, 2022, 9:43pm UTC](https://forum.bubble.io/t/stripe-plugin-error-on-create-payment-intent/233242/2 "2022-11-19T21:43:29Z")

</div>

Realized it’s because of the new API version stripe released 4 days ago, and my client is on the newest version of stripe while the API Plugin is out of date… Do we just wait until the plugin publishes the newest version?
