Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vlael Layug 13 posts 115 karma points c-trib
    Sep 12, 2022 @ 03:04
    Vlael Layug
    0

    Vendr Stripe Payment Method - Skip Checkout

    Is it possible to skip the checkout if there's a "paymentMethodId" supplied? I'm not sure if Vendr Stripe can cater this out of the box.

    I saw that in the stripe's PaymentIntentCreateOptions class there's a "PaymentMethod" field.

    enter image description here

    Also I think there's also one field to cover, if there's also a scenario for passing the value for "SetupFutureUsage"

    enter image description here

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Sep 12, 2022 @ 07:35
    Matt Brailsford
    100

    Hi Vlael,

    Not with the out of the box provider no. The OOTB providers are really there to suite most customers who just need to take a payment. More advanced solutions like storing payment details for later reuse fall outside of this basic use case and so for that type of thing you'd need to implement your own payment provider.

    Payment providers are totally pluggable though and you can write your own. There are some docs here to outline the pattern https://vendr.net/docs/core/2.1.0/umbraco-v9/key-concepts/payment-providers/ and the source code for the Stripe provider is available here https://github.com/vendrhub/vendr-payment-provider-stripe which might act as a good starting point for you.

    Hope this helps

    Matt

  • Vlael Layug 13 posts 115 karma points c-trib
    Sep 13, 2022 @ 06:31
    Vlael Layug
    1

    Hello Matt,

    Thanks for the detailed info - I've managed to wrap it up by implementing a custom payment provider and using the vendor payment provider stripe as the starting point. :)

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Sep 13, 2022 @ 07:39
    Matt Brailsford
    0

    Fantastic. Glad you were able to get it all to work 👍

Please Sign in or register to post replies

Write your reply to:

Draft