Skip to content

Commit

Permalink
phpcbf
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Dec 9, 2022
1 parent fcbd2c1 commit 1a94122
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
28 changes: 14 additions & 14 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function() {
return $this->get_ideal_issuers();
},
'pronamic_pay_ideal_issuers_' . \md5( \wp_json_encode( $config ) )
)
)
);

$ideal_payment_method->add_field( $ideal_issuer_field );
Expand Down Expand Up @@ -231,60 +231,60 @@ public function start( Payment $payment ) {
'statsData' => [
/**
* Info.
*
*
* From https://developer.pay.nl/reference/post_transactions:
* > "The used info code which can be tracked in the stats."
*
*
* From https://docs.pay.nl/developers#transaction-paylater:
* > "Variabele 'info' die kan worden getraceerd in de statistieken"
*/
'info' => 'Pronamic Pay payment ' . $payment->get_id(),
/**
* Tool.
*
*
* From https://developer.pay.nl/reference/post_transactions:
* > "The used tool code which can be tracked in the stats."
*
*
* From https://docs.pay.nl/developers#transaction-paylater:
* > "Variabele 'tool' die kan worden getraceerd in de statistieken"
*/
'tool' => 'Pronamic Pay ' . \pronamic_pay_plugin()->get_version(),
/**
* Extra 1.
*
*
* From https://developer.pay.nl/reference/post_transactions:
* > "The first free value which can be tracked in the stats."
*
*
* From https://docs.pay.nl/developers#transaction-paylater:
* > "Vrije variabele 'extra1' die kan worden getraceerd in de statistieken (advies: ID van de order)."
*/
'extra1' => $payment->get_id(),
/**
* Extra 2.
*
*
* From https://developer.pay.nl/reference/post_transactions:
* > "The second free value which can be tracked in the stats."
*
*
* From https://docs.pay.nl/developers#transaction-paylater:
* > "Vrije variabele 'extra2' die kan worden getraceerd in de statistieken (advies: klant referentie)."
*/
'extra2' => \get_current_user_id(),
/**
* Extra 3.
*
*
* From https://developer.pay.nl/reference/post_transactions:
* > "The third free value which can be tracked in the stats."
*
*
* From https://docs.pay.nl/developers#transaction-paylater:
* > "Vrije variabele 'extra3' die kan worden getraceerd in de statistieken"
*/
'extra3' => $payment->get_source() . ' - ' . $payment->get_source_id(),
/**
* Object.
*
*
* From https://developer.pay.nl/reference/post_transactions:
* > "The object which can be tracked in stats."
*
*
* From https://docs.pay.nl/developers#mandatory-data-technical-partners:
* > "Naam van het platform of de technische partner, eventueel gevolgd door een pipeline met versienummers"
*/
Expand All @@ -293,7 +293,7 @@ public function start( Payment $payment ) {
[
/**
* Pronamic Pay version.
*
*
* @link https://github.com/pronamic/pronamic-pay/issues/12
*/
'PronamicPay/' . \pronamic_pay_plugin()->get_version(),
Expand Down
6 changes: 3 additions & 3 deletions tests/src/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public function mock_http_response( $url, $file ) {
* @link https://github.com/WordPress/WordPress/blob/3.9.1/wp-includes/class-http.php#L150-L164
*
* @param false|array|\WP_Error $preempt Whether to preempt an HTTP request's return value. Default false.
* @param array $r HTTP request arguments.
* @param string $url The request URL.
* @param array $r HTTP request arguments.
* @param string $url The request URL.
*
* @return array
*/
Expand Down Expand Up @@ -80,7 +80,7 @@ public function pre_http_request( $preempt, $r, $url ) {
* @throws \Exception Throws exception if service can not be found.
*/
public function test_get_issuers() {
$this->mock_http_response( 'https://rest-api.pay.nl/v4/Transaction/getService/json/?token&serviceId&paymentMethodId=10', dirname( dirname( __FILE__ ) ) . '/http/transaction-get-service-json-ideal-service-not-found.http' );
$this->mock_http_response( 'https://rest-api.pay.nl/v4/Transaction/getService/json/?token&serviceId&paymentMethodId=10', dirname( __DIR__ ) . '/http/transaction-get-service-json-ideal-service-not-found.http' );

$client = new Client( '', '' );

Expand Down

0 comments on commit 1a94122

Please sign in to comment.