for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pronamic\WordPress\Pay\Gateways\Nocks;
use Pronamic\WordPress\Pay\Core\PaymentMethods;
/**
* Title: Nocks payment methods
* Description:
* Copyright: 2005-2020 Pronamic
* Company: Pronamic
*
* @author Reüel van der Steege
* @version 2.0.0
* @since 1.0.0
*/
class Methods {
* Constant for the Bancontact method.
* @var string
const BANCONTACT = 'bancontact';
* Constant for the Giropay method.
const GIROPAY = 'giropay';
* Constant for the Gulden payment method.
const GULDEN = 'gulden';
* Constant for the iDEAL payment method.
const IDEAL = 'ideal';
* Constant for the SEPA payment method.
const SEPA = 'sepa';
* Transform WordPress payment method to Nocks method.
* Nocks only offers Gulden payment method to merchants.
* @param string $payment_method WordPress Pay payment method.
* @return string
public static function transform( $payment_method ) {
switch ( $payment_method ) {
case PaymentMethods::GULDEN:
return self::GULDEN;
default:
return null;
}