added options in paypal credential and payment
This commit is contained in:
@@ -92,14 +92,9 @@ function handle_orders_request_CIPF($request_data) {
|
||||
function create_order_CIPF() {
|
||||
Plgntls::debug_infos();
|
||||
$paypal_api_base_url = get_paypal_api_base_url_CIPF();
|
||||
$acf_card_price_total = Cipf::ACF_CARD_PRICE_TOTAL;
|
||||
|
||||
$access_token = generate_access_token_CIPF();
|
||||
|
||||
$user_id = get_current_user_id();
|
||||
$acf_id = 'user_' . $user_id;
|
||||
$price = get_field($acf_card_price_total['_name'], $acf_id);
|
||||
// $price = 0.01;
|
||||
$price = get_paypal_price_CIPF();
|
||||
|
||||
$url = $paypal_api_base_url . '/v2/checkout/orders';
|
||||
$payload = array(
|
||||
|
||||
Reference in New Issue
Block a user