Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
Added support for the credit card payment method.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Nov 5, 2014
1 parent a4133d0 commit 4dac592
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ public function start( Pronamic_Pay_PaymentDataInterface $data, Pronamic_Pay_Pay
$this->client->set_transaction_reference( $payment->get_transaction_id() );

switch ( $payment_method ) {
case Pronamic_WP_Pay_PaymentMethods::CREDIT_CARD :
$this->client->add_payment_mean_brand( Pronamic_WP_Pay_Gateways_OmniKassa_PaymentMethods::MAESTRO );
$this->client->add_payment_mean_brand( Pronamic_WP_Pay_Gateways_OmniKassa_PaymentMethods::MASTERCARD );
$this->client->add_payment_mean_brand( Pronamic_WP_Pay_Gateways_OmniKassa_PaymentMethods::VISA );
$this->client->add_payment_mean_brand( Pronamic_WP_Pay_Gateways_OmniKassa_PaymentMethods::VPAY );

break;
case Pronamic_WP_Pay_PaymentMethods::MISTER_CASH :
$this->client->add_payment_mean_brand( Pronamic_WP_Pay_Gateways_OmniKassa_PaymentMethods::BCMC );

Expand Down

0 comments on commit 4dac592

Please sign in to comment.