I'm building an auction website using WP and WooCommerce and I've got a question about using WooCommerce Payments and processing "delayed" payments aka "Capture" in gateway terminology. Desired behaviour: only users with a valid payment method can participate in bidding. Upon winning the item, the winner's card is charged some percentage of the bid amount.

Proposed solution: use WooCommerce and Simple Auction extension. I use built-in WooCommerce payment feature to ensure the bidder has a payment method added. When a user wins, I somehow (with an action hook - eg. woocommerce_simple_auction_won) need to initiate a capture request (for Stripe?) using the saved card that I have in WooCommerce payment tokens (wp_woocommerce_payment_tokens table). Does it sound like a reasonable approach? Thanks in advance.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.