@@ -44,24 +44,25 @@ public function getParams($checkout_id): array
4444 }
4545
4646 /**
47- * Generate the params that used in the recurring payment
48- * @param string $amount
49- * @param string $shopperResultUrl
50- * @param string $checkout_id That define the entity_id related to the registration id.
47+ * Generate the params that used in the recurring payment.
48+ *
49+ * @param string $amount
50+ * @param string $shopperResultUrl
51+ * @param string $checkout_id That define the entity_id related to the registration id.
5152 * @return array
5253 */
5354 public function postRecurringPayment ($ amount , $ shopperResultUrl , $ checkout_id )
5455 {
5556 $ currency = config ('hyperpay.currency ' );
5657
5758 return array_merge ([
58- " standingInstruction.mode " => " REPEATED " ,
59- " standingInstruction.type " => " RECURRING " ,
60- " standingInstruction.source " => " MIT " ,
61- " amount " => $ amount ,
62- " currency " => $ currency ,
63- " paymentType " => " PA " ,
64- " shopperResultUrl " => $ shopperResultUrl
59+ ' standingInstruction.mode ' => ' REPEATED ' ,
60+ ' standingInstruction.type ' => ' RECURRING ' ,
61+ ' standingInstruction.source ' => ' MIT ' ,
62+ ' amount ' => $ amount ,
63+ ' currency ' => $ currency ,
64+ ' paymentType ' => ' PA ' ,
65+ ' shopperResultUrl ' => $ shopperResultUrl,
6566 ], $ this ->getParams ($ checkout_id ));
6667 }
6768
@@ -94,16 +95,17 @@ protected function getBodyParameters($amount, Model $user, $heyPerPayConfig): ar
9495 }
9596
9697 /**
97- * The init recurring payment params
98+ * The init recurring payment params.
99+ *
98100 * @return array
99101 */
100102 protected function registerPaymentData ()
101103 {
102104 return [
103- " standingInstruction.mode " => " INITIAL " ,
104- " standingInstruction.type " => " RECURRING " ,
105- " standingInstruction.source " => " CIT " ,
106- " createRegistration " =>true ,
105+ ' standingInstruction.mode ' => ' INITIAL ' ,
106+ ' standingInstruction.type ' => ' RECURRING ' ,
107+ ' standingInstruction.source ' => ' CIT ' ,
108+ ' createRegistration ' =>true ,
107109 ];
108110 }
109111
0 commit comments