Support » Plugin: WooCommerce Stripe Payment Gateway » Accessing customer tokens

  • Resolved tommykent1210

    (@tommykent1210)


    Hi,

    We are working with an API for property booking and they want us to pass payment details directly through stripe tokens. They are ideally looking for a response like this:

    "payload": {
    "id":"tok_1Dkwe92IAP<deducted>",
    "object":"token",
    "card":{
    "id": "card_1Dkwe92IAP<deducted>",
    "object": "card",
    "address_city": null,
    "address_country": null,
    "address_line1": null,
    "address_line1_check": null,
    "address_line2": null,
    "address_state": null,
    "address_zip": null,
    "address_zip_check": null,
    "brand": "Visa",
    "country": "IL",
    "cvc_check": "unchecked",
    "dynamic_last4": null,
    "exp_month": 11,
    "exp_year": 2021,
    "funding": "prepaid",
    "last4": "1371",
    "metadata": {},
    "name": "test1",
    "tokenization_method": null
    },
    "client_ip":"82.166.98.217",
    "created":1545670277,
    "livemode":true,
    "type":"card",
    "used":false
    }

    It looks like they’re expecting a payment token and card token. Can we get this information as a payment is made, stop that payment, then pass the details through to the API so that the booking company can take the payment when neccessary (60 days before check in)

    Thanks
    Tom

    • This topic was modified 3 months, 3 weeks ago by  tommykent1210.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Radoslav Georgiev

    (@radogeorgiev)

    Hi @tommykent1210,

    unfortunately the short answer is no.

    You’d need to do a lot of custom coding in order to use extension in order to access the source (or card) object, but this is far from supported out of the box.

    Also, there are some upcoming EEA Strong Customer Authentication changes, which would prevent the booking company from creating a charge off-site based on card only.

    Plugin Support laceyrod

    (@laceyrod)

    Automattic Happiness Engineer

    This thread has been inactive for a bit, so I’m going to mark it as Resolved now. Please feel free to open a new one if you have any further questions.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.