Enabling Stripe Smarter Saved Cards Code in JotForm Stripe Integration

  • techbird
    Asked on July 24, 2015 at 9:08 AM

    Hi there,

    We use Stripe integration with Jotform. Stripe has a feature to help keep customers' credit cards updated but it requires inserting some code. I asked where to insert it for our Jotform and they recommended that I ask Jotform directly. Where should the following code be input? 

    Thank you.

     

    Source:

    https://stripe.com/blog/smarter-saved-cards

     

    Code:

    { "id": "evt_5WmzN8V26JZQ1B", "type": "customer.source.updated", "object": "event", "data": { "object": { "id": "card_0ggBPvHF5HODr5", "object": "card", "last4": "3110", "exp_month": 11, "exp_year": 2017, "customer": "cus_8h42pwFc41m2", ... }, "previous_attributes": { "exp_year": 2014 } }, ... }

     

  • KadeJM
    Replied on July 24, 2015 at 12:02 PM

    From what I gather here it seems that you want to be able to save their credit card information for later use using the above code so that they don't have to redo everything all over again if there are any changes to the customers card being used at the time.

    To be honest other than our current setup with stripe for charging customers "Immediately or Manually (later on)" which the manually later on does save cc information for later charges.  As far as I know though, I am believe if it is possible then this would likely need to be added to the form's full source code somewhere and then that would likely have to be embedded onto a webpage on your end as a whole. Unfortunately though, my knowledge on whether the code would be feasible or not is rather limited and would require time to test further to find the appropriate spot. So i'll need time to investigate to help you out better.

    However, I think for something of this sort it's probably best for us to open up a Ticket as I am doing now for you on your thread here for better advice about this from one of our Developers to check and see if it's a good idea or not. If possible then we'll update you with proper details.

  • techbird
    Replied on July 28, 2015 at 9:37 AM

    KadeJM thank you for this response and for opening the ticket. Indeed, since I'm not a programmer I really don't understand how the code would work. The Stripe agent told me that it would help them to keep the card info updated automatically. If there are security issues with this, then we certainly wouldn't want to do it. We would never want to store credit card info on our servers - that should be left to Stripe. 

    Awaiting another response. 

  • KadeJM
    Replied on July 28, 2015 at 11:04 AM

    You are quite welcome. Unfortunately, I attempted to try to understand and figure it out a little better but no luck yet so I do apologize about that. At this point it is probably best to wait for our developers to aid in this. Additionally, I agree that it must be stored on stripe and not elsewhere. As soon as we know more about this if it is considerable then we'll inform you here with another update.

  • techbird
    Replied on July 31, 2015 at 9:34 AM

    Will the developers be responding to this post? Thank you.

  • KadeJM
    Replied on July 31, 2015 at 12:12 PM

    Yes, if there is any news about this then they would let you know here when and if that happens.

  • NeilVicente
    Replied on November 12, 2015 at 12:01 PM

    Hi @techbird,

    Sorry that it took us a long time to respond. 

    With regard to your request, I would like to inform you that this feature is actually already built into Stripe's system—there are no changes needed to be applied to Stripe integrations, including JotForm's.

    The snippet provided by Stripe is the web hooks data fired when the customer's physical card gets replaced by their bank. This data isn't crucial at all—the customer's card will still work without you doing anything.

    Hope this post answered your questions with regard to this new feature by Stripe. 

    Best regards