File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 5
5
* @since 1.0
6
6
*
7
7
* @param $donation_data
8
+ *
9
+ * @return bool
8
10
*/
9
11
function give_process_iats_payment ( $ donation_data ) {
10
12
@@ -29,7 +31,7 @@ function give_process_iats_payment( $donation_data ) {
29
31
'cvv2 ' => $ donation_data ['card_info ' ]['card_cvc ' ],
30
32
'firstName ' => $ donation_data ['post_data ' ]['give_first ' ],
31
33
'lastName ' => $ donation_data ['post_data ' ]['give_last ' ],
32
- 'total ' => $ donation_data ['post_data ' ]['give-amount ' ],
34
+ 'total ' => give_sanitize_amount ( $ donation_data ['post_data ' ]['give-amount ' ], give_get_price_decimals ()) ,
33
35
'comment ' => 'givewp ' ,
34
36
'currency ' => give_get_currency (),
35
37
'mop ' => give_iats_get_card_name_by_type ( $ card ['type ' ] ),
@@ -113,8 +115,10 @@ function give_process_iats_payment( $donation_data ) {
113
115
update_post_meta ( $ payment , '_iats_donation_response ' , $ response );
114
116
update_post_meta ( $ payment , '_iats_mop ' , give_iats_get_card_name_by_type ( $ card ['type ' ] ) );
115
117
116
- // Send to success page.9
118
+ // Send to success page.
117
119
give_send_to_success_page ();
120
+
121
+ return true ;
118
122
}
119
123
120
124
add_action ( 'give_gateway_iats ' , 'give_process_iats_payment ' );
You can’t perform that action at this time.
0 commit comments