Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
Stripe::get_settings_url
Get the settings URL for a payment gateway.
Method of the class: Stripe{}
No Hooks.
Returns
String. The settings URL for the payment gateway.
Usage
$Stripe = new Stripe(); $Stripe->get_settings_url( $payment_gateway ): string;
- $payment_gateway(WC_Payment_Gateway) (required)
- The payment gateway object.
Stripe::get_settings_url() Stripe::get settings url code WC 10.7.0
public function get_settings_url( WC_Payment_Gateway $payment_gateway ): string {
return Utils::wc_payments_settings_url(
null,
array(
'section' => strtolower( $payment_gateway->id ),
'from' => Payments::FROM_PAYMENTS_SETTINGS,
)
);
}