• Resolved antongildebrand

    (@antongildebrand)


    Hello,

    I have created a custom WooCommerce store where the frontend is based on AngularJS and AJAX-calls to the backend. Now I wonder, how can I add the S4WC credit card form in my pages and make it work with AJAX-calls only?

    EDIT:

    My preferable way of doing this would be that i post the users CC information to my server, where i call the S4WC plugin which tells me if the payment was ok or not. However, I’ve noticed that the “native” way of paying with CC is in two steps:
    1. Client contacts Stripe with CC-info and receives a token.
    2. Client creates order with the token received from Stripe.

    This is also a solution that I could implement, but I don’t know how to render the payment form the “right” way, and how to register a callback on the client and check for valid payment on the server side.

    https://wordpress.org/plugins/stripe-for-woocommerce/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Using S4WC on an JS based webpage’ is closed to new replies.