| @@ 115-117 (lines=3) @@ | ||
| 112 | /* If we're doing a retry and source is chargeable, we need to pass |
|
| 113 | * a different idempotency key and retry for success. |
|
| 114 | */ |
|
| 115 | if ( 1 < $this->retry_interval && 'chargeable' === $source_info->status ) { |
|
| 116 | add_filter( 'wc_stripe_idempotency_key', array( $this, 'change_idempotency_key' ), 10, 2 ); |
|
| 117 | } |
|
| 118 | ||
| 119 | // Make the request. |
|
| 120 | $response = WC_Stripe_API::request( $this->generate_payment_request( $order, $source_object ) ); |
|
| @@ 554-556 (lines=3) @@ | ||
| 551 | /* If we're doing a retry and source is chargeable, we need to pass |
|
| 552 | * a different idempotency key and retry for success. |
|
| 553 | */ |
|
| 554 | if ( 1 < $this->retry_interval && ! empty( $source_object ) && 'chargeable' === $source_object->status ) { |
|
| 555 | add_filter( 'wc_stripe_idempotency_key', array( $this, 'change_idempotency_key' ), 10, 2 ); |
|
| 556 | } |
|
| 557 | ||
| 558 | // Make the request. |
|
| 559 | $response = WC_Stripe_API::request( $this->generate_payment_request( $order, $prepared_source ) ); |
|