Skip to content

Commit

Permalink
Started working on payment redirect controller.
Browse files Browse the repository at this point in the history
  • Loading branch information
knit-pay committed Feb 10, 2024
1 parent ce19a4a commit db8d780
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Payments/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,13 @@ public function set_failure_reason( FailureReason $failure_reason = null ) {
*/
public function get_pay_redirect_url() {
$url = add_query_arg(
[
'payment_redirect' => $this->id,
'key' => $this->key,
],
home_url( '/' )
'key',

Check failure on line 356 in src/Payments/Payment.php

View workflow job for this annotation

GitHub Actions / phpcs / phpcs

Tabs must be used to indent lines; spaces are not allowed
$this->key,

Check failure on line 357 in src/Payments/Payment.php

View workflow job for this annotation

GitHub Actions / phpcs / phpcs

Tabs must be used to indent lines; spaces are not allowed
\rest_url( "/" . pronamic_pay_plugin()->rest_base . "/v1/payments/" .$this->id . "/redirect" )

Check failure on line 358 in src/Payments/Payment.php

View workflow job for this annotation

GitHub Actions / phpcs / phpcs

Tabs must be used to indent lines; spaces are not allowed

Check failure on line 358 in src/Payments/Payment.php

View workflow job for this annotation

GitHub Actions / phpcs / phpcs

String "/" does not require double quotes; use single quotes instead

Check failure on line 358 in src/Payments/Payment.php

View workflow job for this annotation

GitHub Actions / phpcs / phpcs

String "/v1/payments/" does not require double quotes; use single quotes instead

Check failure on line 358 in src/Payments/Payment.php

View workflow job for this annotation

GitHub Actions / phpcs / phpcs

Concat operator must be surrounded by a single space

Check failure on line 358 in src/Payments/Payment.php

View workflow job for this annotation

GitHub Actions / phpcs / phpcs

String "/redirect" does not require double quotes; use single quotes instead
);

$url = \rest_url( "/" . pronamic_pay_plugin()->rest_base . "/v1/payments/" .$this->id . "/redirect/" . $this->key);

Check failure on line 361 in src/Payments/Payment.php

View workflow job for this annotation

GitHub Actions / phpcs / phpcs

String "/" does not require double quotes; use single quotes instead

Check failure on line 361 in src/Payments/Payment.php

View workflow job for this annotation

GitHub Actions / phpcs / phpcs

String "/v1/payments/" does not require double quotes; use single quotes instead

Check failure on line 361 in src/Payments/Payment.php

View workflow job for this annotation

GitHub Actions / phpcs / phpcs

Concat operator must be surrounded by a single space

return $url;
}

Expand Down

0 comments on commit db8d780

Please sign in to comment.