Skip to content

Commit 92bd959

Browse files
committed
accept only naira
1 parent dff9055 commit 92bd959

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

wpjobster-paystack.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,13 +276,18 @@ function paystack_meta_as_custom_fields($metadata){
276276
* @since 1.0.0
277277
*/
278278
public function taketogateway_function() {
279+
279280
$credentials = $this->get_gateway_credentials();
280281

281282
$all_data = array();
282283
// $all_data['publickey'] = $credentials['publickey'];
283284
// $all_data['secretkey'] = $credentials['secretkey'];
284285

285286
$currency = wpjobster_get_currency();
287+
if ($currency != 'NGN') {
288+
_e('You can only pay in Naira with Paystack, go back and select Naira','wpjobster');
289+
exit;
290+
}
286291

287292
$common_details = get_common_details( $this->unique_slug, 0, $currency );
288293

0 commit comments

Comments
 (0)