Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
Stripe::get_onboarding_url
Get the onboarding URL for the payment gateway.
This URL should start or continue the onboarding process.
Method of the class: Stripe{}
No Hooks.
Returns
String. The onboarding URL for the payment gateway.
Usage
$Stripe = new Stripe(); $Stripe->get_onboarding_url( $payment_gateway, $return_url ): string;
- $payment_gateway(WC_Payment_Gateway) (required)
- The payment gateway object.
- $return_url(string)
- The URL to return to after onboarding. This will likely get attached to the onboarding URL.
Default:''
Stripe::get_onboarding_url() Stripe::get onboarding url code WC 10.7.0
public function get_onboarding_url( WC_Payment_Gateway $payment_gateway, string $return_url = '' ): string {
// Fall back to pointing users to the payment gateway settings page to handle onboarding.
return $this->get_settings_url( $payment_gateway );
}