About of payment gateway development #7304
Replies: 5 comments 2 replies
-
Hi @BeycanDeveloper Hope you doing well. We need better documentation for it, but for now, if you take a look at this class you'll see that we provide in the To use it in your integration, all you need to do is replace this line:
By this one:
Let me know if it works for you! |
Beta Was this translation helpful? Give feedback.
-
In fact, when it succeeds, there is no problem with routing. The "createPayment" method returns the link to the payment page created by our plugin with the "RedirectOffsite" class. However, Legacy Form tries to open it on the same page instead of redirecting to this page. public function createPayment(Donation $donation, $gatewayData): RedirectOffsite
{
return Processor::createPayment(Type::LITE, $donation, $this->generateSecureGatewayRouteUrl(
'handleCreatePaymentRedirect',
$donation->id,
[
'givewp-donation-id' => $donation->id,
'givewp-payment-token' => 'cp_payment_token',
'givewp-transaction-id' => 'cp_transaction_id',
'givewp-success-url' => urlencode(give_get_success_page_uri()),
]
));
} |
Beta Was this translation helpful? Give feedback.
-
Hi @BeycanDeveloper Not sure if I understand what you said. So I would like to confirm a few things:
If the reply to the last question is yes, let me know what happens when you replace your
|
Beta Was this translation helpful? Give feedback.
-
Yes second one and already i am using RedirectOffsite class. |
Beta Was this translation helpful? Give feedback.
-
So with this logic, it expects an external link. If it's the same site, it tries to open it inside. So how do we prevent this? Because our plugin works completely within WordPress. |
Beta Was this translation helpful? Give feedback.
-
We developed an integration for our CryptoPay plugin. It works fine in Visual Forms, but unfortunately it does not redirect in the Legacy system. Can you help with this issue?
Here is repo, you can check it.
https://github.com/BeycanPress/givewp-cryptopay-gateway
Beta Was this translation helpful? Give feedback.
All reactions