This code retrieves the payment URL of the PayPal gateway in order to allow customers to complete the payment process. WC()->api->get() is used to retrieve the PayPal gateway object, and the get_checkout_payment_url() method is used to get the payment URL.
Was this code snippet helpful?
YesNo