mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Fix phpcs
This commit is contained in:
parent
81826fbd61
commit
3801a8f838
3 changed files with 14 additions and 11 deletions
|
@ -132,6 +132,8 @@ class CaptureCardPayment {
|
||||||
* Creates PayPal order from the given card vault id.
|
* Creates PayPal order from the given card vault id.
|
||||||
*
|
*
|
||||||
* @param string $vault_id Vault id.
|
* @param string $vault_id Vault id.
|
||||||
|
* @param string $custom_id Custom id.
|
||||||
|
* @param string $invoice_id Invoice id.
|
||||||
* @return stdClass
|
* @return stdClass
|
||||||
* @throws RuntimeException When request fails.
|
* @throws RuntimeException When request fails.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -411,6 +411,7 @@ class CreditCardGateway extends \WC_Payment_Gateway_CC {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// phpcs:ignore WordPress.Security.NonceVerification.Missing
|
||||||
$card_payment_token_id = wc_clean( wp_unslash( $_POST['wc-ppcp-credit-card-gateway-payment-token'] ?? '' ) );
|
$card_payment_token_id = wc_clean( wp_unslash( $_POST['wc-ppcp-credit-card-gateway-payment-token'] ?? '' ) );
|
||||||
if ( $card_payment_token_id ) {
|
if ( $card_payment_token_id ) {
|
||||||
$tokens = WC_Payment_Tokens::get_customer_tokens( get_current_user_id() );
|
$tokens = WC_Payment_Tokens::get_customer_tokens( get_current_user_id() );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue