We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce19a4a commit db8d780Copy full SHA for db8d780
src/Payments/Payment.php
@@ -353,13 +353,13 @@ public function set_failure_reason( FailureReason $failure_reason = null ) {
353
*/
354
public function get_pay_redirect_url() {
355
$url = add_query_arg(
356
- [
357
- 'payment_redirect' => $this->id,
358
- 'key' => $this->key,
359
- ],
360
- home_url( '/' )
+ 'key',
+ $this->key,
+ \rest_url( "/" . pronamic_pay_plugin()->rest_base . "/v1/payments/" .$this->id . "/redirect" )
361
);
362
+ $url = \rest_url( "/" . pronamic_pay_plugin()->rest_base . "/v1/payments/" .$this->id . "/redirect/" . $this->key);
+
363
return $url;
364
}
365
0 commit comments