Skip to content

Commit

Permalink
Fetch Stripe settings with Stripe configuration API
Browse files Browse the repository at this point in the history
  • Loading branch information
hsingyuc committed Feb 28, 2025
1 parent 040ad96 commit 6c8527e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions includes/class-wc-stripe-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,4 +435,13 @@ public static function should_detach_payment_method_from_customer() {

return true;
}

/**
* Get the payment method configuration.
*
* @return array The response from the API request.
*/
public static function get_payment_method_configurations() {
return self::retrieve( 'payment_method_configurations' );
}
}

0 comments on commit 6c8527e

Please sign in to comment.