Subscription > payment provider

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Subscription > payment provider

Post by aimeos » 20 Nov 2019, 12:56

A confirmation e-mail will be generated by the order/email/payment job (which should be execute by a cron job regularly).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cyrotek
Posts: 58
Joined: 27 Jun 2019, 16:43

Re: Subscription > payment provider

Post by cyrotek » 21 Nov 2019, 08:13

Okay, I think I've sorted myself. Two questions for now.


1. Is there a way to not send a mail for the new invoice? like an option or anything? As I'd rather not send it or would i need to make my own class for the email job?
2. It is correct that it will also fire the delivery service, right?

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Subscription > payment provider

Post by aimeos » 22 Nov 2019, 09:11

cyrotek wrote: 21 Nov 2019, 08:13 1. Is there a way to not send a mail for the new invoice? like an option or anything? As I'd rather not send it or would i need to make my own class for the email job?
An e-mail will be sent if you set the order payment status to a value for which the job controller sends an e-mail (usually >= PAY_PENDING).
cyrotek wrote: 21 Nov 2019, 08:13 2. It is correct that it will also fire the delivery service, right?
Only if you set the delivery status.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cyrotek
Posts: 58
Joined: 27 Jun 2019, 16:43

Re: Subscription > payment provider

Post by cyrotek » 22 Nov 2019, 11:35

Hey, okay, that seems to work. Though.

I need to have $this->getConfigValue('payment.url-update') for the webhook of mollie, but its empty within repay(). How to get it?

EDIT: Also once i run the renew job it somehow screws my order up. I thought the renew would create a new invoice for the initial order, not a new order alltogether. Also it somehow removes my address from the initial order. Take a look at my screens.

Just noticed it seems to be a bug, if i run the renew for the first time it'll delete the address from the original order and put it into the first renew, if i renew again, the address remains empty, probably because the intial order address is gone.

Edited the renew now. Instead of creating a new order, i just create a new invoice for the original order. Seems better to me in the context of a subscription. Renew/Standard.php Line 87

Code: Select all

//$newOrder = $this->createOrderBase( $context, $item );
$orderManager = \Aimeos\MShop::create( $context, 'order/base' );
$newOrder = $orderManager->load( $item->getOrderBaseId() );
$newInvoice = $this->createOrderInvoice( $context, $newOrder );
Attachments
subscription2.jpg
subscription2.jpg (37.43 KiB) Viewed 1674 times

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Subscription > payment provider

Post by aimeos » 23 Nov 2019, 08:33

Can you please run "composer update" and make sure you have th latest Aimeos 2019.10.x versions?
There have been a problem with addresses and that might also fix your problem.

A new order is created for subscriptions because orders can have more then the subscription product, e.g. together with a regular articles. That one shouldn't be renewed.

In Aimeos 2020.x, mshop_order and mshop_order_base will get merged.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply