#kwac.-account-support

1 messages · Page 1 of 1 (latest)

bleak obsidianBOT
#

@frozen cliff :question: Have a non-technical question, account issue, or need one-on-one support? We wish we could help, but this community is focused on developers and technical discussions. Our support team will be able to assist you better than we can: https://support.stripe.com/contact

frozen cliff
#

`
$options = get_option( 'woocommerce_stripe_settings' );
$stripeKey = 'yes' === $options['testmode'] ? $options['test_secret_key'] :
$options['secret_key'] ;

    \Stripe\Stripe::setApiKey($stripeKey);
    
    $stripe_customer_id = $order->get_meta('_stripe_customer_id');
    $product_id = absint($_GET['selected_product_id']);
    $product = wc_get_product($product_id);
    $product_value = $product->get_price();
        
    $charge = \Stripe\Charge::create([
        'amount' => $product_value,
        'currency' => 'usd',
        'customer' =>  $stripe_customer_id,
    ]);

`

this is not correct way to do it in woocommerce stripe gateway plugin?

lunar spire
#

please contact https://support.stripe.com/?contact=true for your WooCommerce questions