You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: helloasso-woocommerce-gateway.php
+120-1Lines changed: 120 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
/**
4
4
* Plugin Name: HelloAsso Payments for WooCommerce
5
5
* Description: Recevez 100% de vos paiements gratuitement. HelloAsso est la seule solution de paiement gratuite du secteur associatif. Nous sommes financés librement par la solidarité de celles et ceux qui choisissent de laisser une contribution volontaire au moment du paiement à une association.
6
-
* Version: 1.0.10
6
+
* Version: 1.0.11
7
7
* Requires at least: 5.0
8
8
* WC requires at least: 7.7
9
9
* Requires PHP: 7.2.34
@@ -123,6 +123,11 @@ class WC_HelloAsso_Gateway extends WC_Payment_Gateway
123
123
{
124
124
publicfunction__construct()
125
125
{
126
+
helloasso_log_info('Initialisation du gateway HelloAsso', array(
$order->update_meta_data('helloasso_payment_type', $payment_type === 'three_times' ? '3 fois (prochaine écheance à suivre sur HelloAsso)' : ($payment_type === 'twelve_times' ? '12 fois (prochaine écheance à suivre sur HelloAsso)' : 'une fois'));
767
825
$order->save();
768
826
@@ -789,6 +847,13 @@ public function process_payment($order_id)
789
847
'amount' => $thirdAmount,
790
848
],
791
849
];
850
+
851
+
helloasso_log_info('Paiement en 3 fois configuré', array(
852
+
'order_id' => $order_id,
853
+
'first_amount' => $firstAmount,
854
+
'second_amount' => $secondAmount,
855
+
'third_amount' => $thirdAmount
856
+
));
792
857
} elseif ($payment_type === 'twelve_times') {
793
858
$totalCents = round($total * 100);
794
859
@@ -807,26 +872,80 @@ public function process_payment($order_id)
807
872
'amount' => $monthlyAmount,
808
873
];
809
874
}
875
+
876
+
helloasso_log_info('Paiement en 12 fois configuré', array(
0 commit comments