Skip to content
Code-Schnipsel Gruppen Projekte

Revisionen vergleichen

Änderungen werden so angezeigt, als ob die Quellrevision mit der Zielrevision zusammengeführt würde. Erfahre mehr über den Vergleich von Revisionen.

Quelle

Zielprojekt auswählen
No results found

Ziel

Zielprojekt auswählen
  • quiqqer/payment-stripe
1 Ergebnis
Änderungen anzeigen
Commits auf Quelle (3)
......@@ -214,8 +214,8 @@
<en><![CDATA[Please provide your credit card information in the secure form and click <b>Authorize recurring payment</b> to start the payment process.]]></en>
</locale>
<locale name="payment.PaymentStep.title.SepaDebit">
<de><![CDATA[Bezahlung mit SEPA-Lastschrift (über Stripe)]]></de>
<en><![CDATA[Payment with SEPA Direct Debit (via Stripe)]]></en>
<de><![CDATA[Bezahlung mit SEPA-Lastschrift]]></de>
<en><![CDATA[Payment with SEPA Direct Debit]]></en>
</locale>
<locale name="payment.PaymentStep.info.Card" html="true">
<de><![CDATA[Bitte geben Sie Ihre Kontodaten im sicheren Formular an und klicken auf <b>Jetzt bezahlen</b>, um den Zahlungsvorgang zu starten.]]></de>
......
......@@ -146,6 +146,9 @@ protected function createPaymentIntentForOrder(AbstractOrder $Order, string $pay
'metadata' => [
'orderUuid' => $Order->getUUID()
],
'payment_method_types' => [
PaymentMethod::TYPE_SEPA_DEBIT
],
'mandate_data' => [
'customer_acceptance' => [
'type' => 'online',
......
......@@ -7,15 +7,14 @@
use QUI\ERP\Accounting\Invoice\Invoice;
use QUI\ERP\Accounting\Invoice\InvoiceTemporary;
use QUI\ERP\Accounting\Invoice\InvoiceView;
use QUI\ERP\Accounting\Payments\Payments;
use QUI\ERP\Order\AbstractOrder;
use QUI\ERP\Order\OrderInterface;
use QUI\ERP\Payments\Stripe\AbstractBasePayment;
use QUI\ERP\Payments\Stripe\Provider;
use QUI\ERP\Payments\Stripe\Utils;
use Stripe\Exception\ApiErrorException;
use Stripe\PaymentIntent as StripePaymentIntent;
use Stripe\PaymentMethod;
use QUI\ERP\Payments\Stripe\Provider;
/**
* Stripe payment with SEPA Direct Debit
......@@ -65,7 +64,7 @@ public function getFrontendDescription(): string
*/
public function getPaymentStepTitle(): string
{
return $this->getLocale()->get('quiqqer/payment-stripe', 'payment.PaymentStep.title.Card');
return $this->getLocale()->get('quiqqer/payment-stripe', 'payment.PaymentStep.title.SepaDebit');
}
/**
......@@ -75,7 +74,7 @@ public function getPaymentStepTitle(): string
*/
public function getPaymentStepInfo(): string
{
return $this->getLocale()->get('quiqqer/payment-stripe', 'payment.PaymentStep.info.Card');
return $this->getLocale()->get('quiqqer/payment-stripe', 'payment.PaymentStep.info.SepaDebit');
}
// /**
......@@ -117,13 +116,11 @@ protected function createPaymentIntentForOrder(AbstractOrder $Order, string $pay
'payment_method' => $paymentMethodId,
'amount' => Utils::getCentAmount($Order),
'currency' => mb_strtolower($Order->getCurrency()->getCode()),
// 'confirmation_method' => 'manual',
'confirm' => true,
'description' => Utils::getPaymentDescriptionForOrder($Order),
'statement_descriptor' => Provider::getStatementDescriptor($Order),
'automatic_payment_methods' => [
'enabled' => true,
'allow_redirects' => 'never'
'payment_method_types' => [
PaymentMethod::TYPE_SEPA_DEBIT
],
'metadata' => [
'orderUuid' => $Order->getUUID()
......