Displaying Credit Cards (that are associated with an invoice/subscription payment)
I tried researching and found tried this article which I thought was a winner - since it spoke directly to my problem. However, after changing privacy settings to “View All” I still don’t have any luck.
In essence, when using Current User’s Credit Card’s (or Card) the list or individual object is empty. However, I’m able to retrieve the subscription and invoices without a problem. What is surprising is I can’t see the credit card that was used to make the payment to the invoice.
Changing the Credit Card linked to the subscription - Under the optional workflows, there isn’t anything immediately obvious that offer users a way to change their billing card. Is this a matter or cancelling and re-subscribing (within the update flow)?
Appreciate any help. I know I’m missing something. I just don’t see what the piece is at the moment.
I’m getting the last4 digits from Customer (not subscription). I don’t think that one Stripe customer can be charged with multiple CCs across multiple subscriptions (otherwise I’d be interested if you could show me how!)
I’m personally using a combination of API Connector calls and Stripe.js calls for all payments as well, but from what I recall you can store the cus_ id in your DB with Bubble’s Stripe plugin.
Question is, can you store the payment method id (“pm_”) too?
If so, you should be able to replicate and initialize these calls in API Connector:
Thanks so much for the detailed walkthrough! I haven’t yet used the API Connector so will dig into your solution to start familiarizing myself with it.
I was however able to solve these 2 problems with Stripe.js rather than the Bubble Stripe plugin. This is with the newest 1.9xx version of Stripe.js (Sidenote: Stripe.js Stripe Element wasn’t working for me initially because I had another plug, Styled Checkbox, that was interfering).
-You can get last 4 digits on Bubble’s Stripe plugin (I think), but only available on Stripe v2, not the latest Stripe v3. v3 gives strong customer authentication and better UI, and v2 wasn’t good enough.
-I am now able to get last 4 digits on Stripe.js, using the Stripe.js - Retrieve a PaymentMethod orkflow, and then accessing “Result of previous step’s… last 4 digits”
-I am also able to update the credit card using Stripe.js, with the Stripe.js - Update Subscription workflow, combined with a new PaymentMethod input through the “Stripe element”
-It should be easy to store the payment method id (“pm_”) using the Stripe element as well; when the user sets up the Stripe element payment you can store their pm_id to their user element
My next challenge is that there doesn’t seem to be any way to apply coupon codes with Stripe.js 1.9.xx – is that something that would be possible with API Connector?
I’m trying to set up an API call for the credit card as I am not using the payment_method inside of Stripe.JS plugin and instead I’m using the Token Element to create a Card Token to add a credit card to the customer.
When setting up the API Connector I’m looking at the Stripe API docs and feel like I’ve done most things correctly, however I keep getting an error saying the ID is not valid as if it doesn’t exist, but in my testing data inside of Stripe I see the ID.
No worries. I did actually get it solved. Took a bit of tinkering around, but my first step was to get the user API setup so I knew it was possible. After that I had a better understanding of how things work to comprehend more of the Stripe docs.