Payment provider status update
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Payment provider status update
Hey there!
I was able to send the request to create a payment in my payment provider. YAY!
Now I can update the payment status via the provider, and I should provide a URL (So the provider can send post requests with status updates).
My question is:
Which url I should provide to receive these updates ( to trigger the `updateSync` function)?
How can I log to a text file the $params when I receive them via `updateSync`?
Thanks
I was able to send the request to create a payment in my payment provider. YAY!
Now I can update the payment status via the provider, and I should provide a URL (So the provider can send post requests with status updates).
My question is:
Which url I should provide to receive these updates ( to trigger the `updateSync` function)?
How can I log to a text file the $params when I receive them via `updateSync`?
Thanks
Re: Payment provider status update
Great!brunojti wrote:I was able to send the request to create a payment in my payment provider. YAY!
What did you've implemented? An Omnipay driver or an Aimeos payment service provider?brunojti wrote:Now I can update the payment status via the provider, and I should provide a URL (So the provider can send post requests with status updates).
My question is:
Which url I should provide to receive these updates ( to trigger the `updateSync` function)?
In Aimeos you have a logger object in the context. If you usebrunojti wrote:How can I log to a text file the $params when I receive them via `updateSync`?
Code: Select all
$this->getContext()->getLogger()->log( '...' );
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Payment provider status update
I am using a Custom Provider (based in Omnipay's code)What did you've implemented? An Omnipay driver or an Aimeos payment service provider?
Code: Select all
public function process(\Aimeos\MShop\Order\Item\Iface $order, array $params = array())
{
if (!isset($params['payment_type']) || empty($params['payment_type'])) {
return $this->getPaymentForm($order, $params);
}
return $this->processOrder($order, $params);
}
Re: Payment provider status update
The payment URLs are automatically generated depending on your environment and passed to the Omnipay driver:
https://github.com/aimeoscom/ai-payment ... y.php#L657
https://github.com/aimeoscom/ai-payment ... y.php#L657
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star