Skip to content

Commit

Permalink
Add support for PayPal payment method (pronamic/wp-pronamic-pay#145).
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Jul 26, 2021
1 parent 59650a0 commit 3d7b282
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/OrderStandard/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function get_supported_payment_methods() {
Core_PaymentMethods::IDEAL,
Core_PaymentMethods::CREDIT_CARD,
Core_PaymentMethods::BANCONTACT,
Core_PaymentMethods::PAYPAL,
);
}

Expand Down Expand Up @@ -195,6 +196,11 @@ public function get_output_fields( Payment $payment ) {
->set_brand( Brands::BCMC )
->set_payment_method( PaymentMethods::CREDIT_CARD );

break;
case Core_PaymentMethods::PAYPAL:
$ogone_data_general
->set_payment_method( PaymentMethods::PAYPAL );

break;
}

Expand Down

0 comments on commit 3d7b282

Please sign in to comment.