|
@@ -37,19 +37,19 @@ discard block |
|
|
block discarded – undo |
|
37
|
37
|
* |
|
38
|
38
|
* @param Pronamic_WP_Pay_GatewayConfig $config |
|
39
|
39
|
*/ |
|
40
|
|
- public function __construct( Pronamic_WP_Pay_GatewayConfig $config ) { |
|
41
|
|
- parent::__construct( $config ); |
|
|
40
|
+ public function __construct(Pronamic_WP_Pay_GatewayConfig $config) { |
|
|
41
|
+ parent::__construct($config); |
|
42
|
42
|
|
|
43
|
|
- $this->set_method( self::METHOD_HTML_FORM ); |
|
44
|
|
- $this->set_has_feedback( true ); |
|
45
|
|
- $this->set_amount_minimum( 0.01 ); |
|
46
|
|
- $this->set_slug( self::SLUG ); |
|
|
43
|
+ $this->set_method(self::METHOD_HTML_FORM); |
|
|
44
|
+ $this->set_has_feedback(true); |
|
|
45
|
+ $this->set_amount_minimum(0.01); |
|
|
46
|
+ $this->set_slug(self::SLUG); |
|
47
|
47
|
|
|
48
|
48
|
$this->client = new Adyen(); |
|
49
|
|
- $this->client->set_payment_server_url( $config->getPaymentServerUrl() ); |
|
50
|
|
- $this->client->set_skin_code( $config->get_buckaroo_skin_code() ); |
|
51
|
|
- $this->client->set_merchant_account( $config->get_buckaroo_merchant_account() ); |
|
52
|
|
- $this->client->set_shared_secret( $config->get_buckaroo_shared_secret() ); |
|
|
49
|
+ $this->client->set_payment_server_url($config->getPaymentServerUrl()); |
|
|
50
|
+ $this->client->set_skin_code($config->get_buckaroo_skin_code()); |
|
|
51
|
+ $this->client->set_merchant_account($config->get_buckaroo_merchant_account()); |
|
|
52
|
+ $this->client->set_shared_secret($config->get_buckaroo_shared_secret()); |
|
53
|
53
|
} |
|
54
|
54
|
|
|
55
|
55
|
///////////////////////////////////////////////// |
|
@@ -60,19 +60,19 @@ discard block |
|
|
block discarded – undo |
|
60
|
60
|
* @param Pronamic_Pay_Payment $payment |
|
61
|
61
|
* @see Pronamic_WP_Pay_Gateway::start() |
|
62
|
62
|
*/ |
|
63
|
|
- public function start( Pronamic_Pay_Payment $payment ) { |
|
64
|
|
- $payment->set_transaction_id( md5( time() . $payment->get_order_id() ) ); |
|
65
|
|
- $payment->set_action_url( $this->client->get_payment_server_url() ); |
|
|
63
|
+ public function start(Pronamic_Pay_Payment $payment) { |
|
|
64
|
+ $payment->set_transaction_id(md5(time() . $payment->get_order_id())); |
|
|
65
|
+ $payment->set_action_url($this->client->get_payment_server_url()); |
|
66
|
66
|
|
|
67
|
|
- $this->client->set_merchant_reference( $payment->get_order_id() ); |
|
68
|
|
- $this->client->set_payment_amount( $payment->get_amount() ); |
|
69
|
|
- $this->client->set_currency_code( $payment->get_currency() ); |
|
70
|
|
- $this->client->set_ship_before_date( new DateTime( '+5 days' ) ); |
|
71
|
|
- $this->client->set_shopper_locale( $payment->get_locale() ); |
|
72
|
|
- $this->client->set_order_data( $payment->get_description() ); |
|
73
|
|
- $this->client->set_session_validity( new DateTime( '+1 hour' ) ); |
|
74
|
|
- $this->client->set_shopper_reference( $payment->get_email() ); |
|
75
|
|
- $this->client->set_shopper_email( $payment->get_email() ); |
|
|
67
|
+ $this->client->set_merchant_reference($payment->get_order_id()); |
|
|
68
|
+ $this->client->set_payment_amount($payment->get_amount()); |
|
|
69
|
+ $this->client->set_currency_code($payment->get_currency()); |
|
|
70
|
+ $this->client->set_ship_before_date(new DateTime('+5 days')); |
|
|
71
|
+ $this->client->set_shopper_locale($payment->get_locale()); |
|
|
72
|
+ $this->client->set_order_data($payment->get_description()); |
|
|
73
|
+ $this->client->set_session_validity(new DateTime('+1 hour')); |
|
|
74
|
+ $this->client->set_shopper_reference($payment->get_email()); |
|
|
75
|
+ $this->client->set_shopper_email($payment->get_email()); |
|
76
|
76
|
} |
|
77
|
77
|
|
|
78
|
78
|
///////////////////////////////////////////////// |