Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

Commit

Permalink
Use return url with key from payment
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Nov 5, 2015
1 parent 2ef566f commit c0ee4fe
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ public function get_issuer_field() {
/////////////////////////////////////////////////

public function start( Pronamic_Pay_PaymentDataInterface $data, Pronamic_Pay_Payment $payment, $payment_method = null ) {
$url = add_query_arg( 'payment', $payment->get_id(), home_url( '/' ) );

$transaction_description = $data->get_description();

if ( empty( $transaction_description ) ) {
Expand All @@ -97,9 +95,9 @@ public function start( Pronamic_Pay_PaymentDataInterface $data, Pronamic_Pay_Pay
$merchant->account = $this->config->account_id;
$merchant->site_id = $this->config->site_id;
$merchant->site_secure_code = $this->config->site_code;
$merchant->notification_url = $url;
$merchant->redirect_url = $url;
$merchant->cancel_url = $url;
$merchant->notification_url = $payment->get_return_url();
$merchant->redirect_url = $payment->get_return_url();
$merchant->cancel_url = $payment->get_return_url();
$merchant->close_window = 'false';

$customer = new Pronamic_WP_Pay_Gateways_MultiSafepay_Connect_Customer();
Expand Down

0 comments on commit c0ee4fe

Please sign in to comment.