This is my url where i need to process the payment using woocommerce payment gateway.
I want to initialize the payment if this url is called.
Below is my full code:
<?php
$orderId = $_GET['order-id'];
// // Process Payment
$available_gateways = WC()->payment_gateways->get_available_payment_gateways();
var_dump($available_gateways['stripe_ideal']); //not null i am getting some texts printed on the screen.
$available_gateways['stripe_ideal']->process_payment($orderId);
?>
Running this code, I'm getting a blank white screen. The page isn't redirecting to stripe website.
Note: I tested the configuration with shop page and its working fine. Its redirecting me stripe page.