Skip to content

Commit

Permalink
Add signature to root generate_payment_request() function
Browse files Browse the repository at this point in the history
  • Loading branch information
james-allan committed Oct 31, 2024
1 parent f256a78 commit 3874264
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions includes/abstracts/abstract-wc-stripe-payment-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,9 @@ public function generate_payment_request( $order, $prepared_payment_method ) {
$metadata = [
__( 'customer_name', 'woocommerce-gateway-stripe' ) => sanitize_text_field( $billing_first_name ) . ' ' . sanitize_text_field( $billing_last_name ),
__( 'customer_email', 'woocommerce-gateway-stripe' ) => sanitize_email( $billing_email ),
'order_id' => $order->get_order_number(),
'site_url' => esc_url( get_site_url() ),
'order_id' => $order->get_order_number(),
'site_url' => esc_url( get_site_url() ),
'signature' => $this->get_order_signature( $order ),
];

if ( $this->has_subscription( $order->get_id() ) ) {
Expand Down

0 comments on commit 3874264

Please sign in to comment.