wpsc_paypal_pro_accepted_card_types

Located in: paypal-pro.merchant.php

Functions that call this hook: form_paypal_pro()

Arguments Accepted: $card_types

Version Introduced: 3.8.9

Description: Filter the acceptable cart types for PayPal Pro.

Code in context:

[php highlight=”551″ firstline=”545″]

$card_types = array(

‘Visa’ => __( ‘Visa’, ‘wpsc’ ),

‘Mastercard’ => __( ‘MasterCard’, ‘wpsc’ ),

‘Discover’ => __( ‘Discover’, ‘wpsc’ ),

‘Amex’ => __( ‘Amex’, ‘wpsc’ ),

);

$card_types = apply_filters( ‘wpsc_paypal_pro_accepted_card_types’, $card_types );

foreach ( $card_types as $type => $title ) {

$output .= sprintf( ‘<option value="%1$s">%2$s</option>’, $type, esc_html( $title ) );

}

[/php]