How to add Pament cost from Paypal

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!
mantik
Posts: 89
Joined: 23 Oct 2017, 05:56

How to add Pament cost from Paypal

Post by mantik » 25 Dec 2018, 14:35

I like to add the price in %. For example 2.8% of total basket price. This is standard by cc and paypal and how to add paypal information after order in confirmation email

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

Re: How to add Pament cost from Paypal

Post by aimeos » 27 Dec 2018, 12:32

There's a "Costs" service decorator available you can add to the PayPal service item:
https://aimeos.org/docs/User_Manual/Adm ... tors#Costs

Which PayPal information would you like to add to the e-mails? Every information that's available is stored as order service attribute item you can retrieve by using $orderService->getAttributeItems() and loop over them.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mantik
Posts: 89
Joined: 23 Oct 2017, 05:56

Re: How to add Pament cost from Paypal

Post by mantik » 27 Dec 2018, 12:44

i like for example to add the Email where to send the money.
Its even not in the confirmation. All textes are just visible in the chekout but if the user dont copy the email there he dont have any information in the email where to send the money. for example bank Transfer (postpay)

mantik
Posts: 89
Joined: 23 Oct 2017, 05:56

Re: How to add Pament cost from Paypal

Post by mantik » 27 Dec 2018, 13:03

typo3conf/ext/my_aimeos/Resources/Private/Extensions/my_aimeos/client/html/templates/common/summary/service-standard.php

Code: Select all

<?php foreach( $this->service as $service ) : ?>
	<div class="item">
		<?php if( ( $url = $service->getMediaUrl() ) != '' ) : ?>
			<div class="item-icons">
				<img src="<?= $enc->attr( $this->content( $url ) ); ?>" />
			</div>
		<?php endif; ?>
		<h4><?= $enc->html( $service->getName() ); ?></h4>
        <?php \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($service); ?>

	</div>
Image

There are no Textes in this object

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

Re: How to add Pament cost from Paypal

Post by aimeos » 28 Dec 2018, 13:11

The order service item does only contain the basic information about the chosen service and the additional information returned by the payment gateway. For PayPal, you normally use direct payments by the customers via the PayPal web site instead of asking them to send the money via PayPal manually.

The easiest way would be to add that information you want to display in the e-mail into the e-mail template. Another option is to save the text to an order service attribute and show that text in the confirmation page and e-mail. To add the service text, you would need a service decorator that will do that for you during the checkout process.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mantik
Posts: 89
Joined: 23 Oct 2017, 05:56

Re: How to add Pament cost from Paypal

Post by mantik » 28 Dec 2018, 13:20

Ok forgott Paypal but how you send payment information if someone take an postpay method. do you except that the user in the Checkout copy the data before he order?

Whats your worklfow for that? Or you write Copmany & Bankaddress, Iban, swift etc in the Name field?
Even WooCommerce can handle this...

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

Re: How to add Pament cost from Paypal

Post by aimeos » 28 Dec 2018, 13:28

That's not optimal in Aimeos yet because what you want is hardly used by anyone. Like said: Simplest solution is to add that information to the template you can overwrite easily (maybe with a condition to check for the service code).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mantik
Posts: 89
Joined: 23 Oct 2017, 05:56

Re: How to add Pament cost from Paypal

Post by mantik » 28 Dec 2018, 13:40

Postpay ist hardly user by anyone?(bank transfer,billing,bitcoin wallet, information for payment not yet in aimeos payment included like skrill etc) ...ok. got it.

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

Re: How to add Pament cost from Paypal

Post by aimeos » 01 Jan 2019, 11:01

Usually, shop owners send invoices separately when using the Aimeos PostPay service provider
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply