Add PayPal Here as a valid transaction type

This commit is contained in:
Thi 2016-08-20 18:19:49 +09:00
parent 0745f1dc89
commit 43cd8c9578
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class WC_Gateway_Paypal_IPN_Handler extends WC_Gateway_Paypal_Response {
* @param string $txn_type
*/
protected function validate_transaction_type( $txn_type ) {
$accepted_types = array( 'cart', 'instant', 'express_checkout', 'web_accept', 'masspay', 'send_money' );
$accepted_types = array( 'cart', 'instant', 'express_checkout', 'web_accept', 'masspay', 'send_money', 'paypal_here' );
if ( ! in_array( strtolower( $txn_type ), $accepted_types ) ) {
WC_Gateway_Paypal::log( 'Aborting, Invalid type:' . $txn_type );