shalintj
Forum Replies Created
-
Forum: Plugins
In reply to: [Direct Stripe] Change Default Country – SubscriptionsGot it. Thanks Nicolas.
Forum: Plugins
In reply to: [Direct Stripe] Subscription – Stuck at “PROCESSING”Got it. Thanks for your response, Nicolas.
Forum: Plugins
In reply to: [Direct Stripe] Subscription – Stuck at “PROCESSING”Thanks Nicolas. Will try it out and let you know how it goes.
BTW, what is “Setting Fee” you referred to in your message?
Forum: Plugins
In reply to: [Direct Stripe] Subscription – Stuck at “PROCESSING”Ok.. So, it worked.. Here’s what I changed and where I messed up earlier:
1. Passed the cross_border like the one-off one. Screengrab: https://cl.ly/dd744df2711a
2. I mistakenly added the product ID and not the plan ID. Fixed that.
One last query (at least for now ?? ):
For now, to test the subscription code, I removed the one-off hook and added the one for the subscription. If I want to let both these to work together, how do I do that? Here are the final versions of the codes that worked:Forum: Plugins
In reply to: [Direct Stripe] Subscription – Stuck at “PROCESSING”Nope. Nowhere else. Have only added it to theme’s functions.php. The surprising part is, this same hook worked for one-off payments but not for subscriptions.
- This reply was modified 6 years ago by shalintj.
Forum: Plugins
In reply to: [Direct Stripe] Subscription – Stuck at “PROCESSING”Got it.
TEST 1: SUBSCRIPTION TEST WITHOUT THE HOOK:
It failed. Here’s the error as per Stripe logs.
https://www.dropbox.com/s/pkm9edl9uyfuwrb/stripe-subscription-error-1.png?dl=0TEST 2: WITH THE HOOK
This too failed.add_action( 'direct_stripe_subscription_data', function($data) { $data[] = array( 'metadata' => array("cross_border_classification" => "export") ); return $data; }, 10 );
Error:
https://www.dropbox.com/s/8hd3ycn7cxufxbm/stripe-subscription-error-2.png?dl=0Forum: Plugins
In reply to: [Direct Stripe] Subscription – Stuck at “PROCESSING”Hey Nicolas.. apologies for pushing this aggressively. Just wanted to check on my last reply. Would be great if you can help me figure what am I running in to this issue…
Forum: Plugins
In reply to: [Direct Stripe] How to pass this additional param?Got it. Thanks a lot Nicolas. You have been very kind and helpful… Thanks…
Forum: Plugins
In reply to: [Direct Stripe] Subscription – Stuck at “PROCESSING”Thanks for the super quick response.
So, I’m making some progress – no longer stuck at “Processing” prompt. But the payment is still failing. Here’s what the log says:
{ "error": { "code": "parameter_missing", "doc_url": "https://stripe.com/docs/error-codes/parameter-missing", "message": "Missing required param: customer.", "param": "customer", "type": "invalid_request_error" } }
Test Page: https://checkout.videodojo.co/stripe-test-2/
Also, here’s a India specific documentation (do look at Page 7):
https://www.dropbox.com/s/lkjr3w7ykdjwa2j/stripe-doc.pdf?dl=0Forum: Plugins
In reply to: [Direct Stripe] How to pass this additional param?It worked perfect! Thanks a ton ??
Also, is there any reason the Stripe dashboard does not show the name? It only shows the email address but in the Stripe modal, it does ask for the name.
Forum: Plugins
In reply to: [Direct Stripe] How to pass this additional param?UPDATE:
I added the following to functions.php. It still didn’t work. Looks like I’m doing something wrong:add_filter('direct_stripe_charge_data', function($cross_border_classification) { $cross_border_classification = 'export'; } );
- This reply was modified 6 years ago by shalintj.
Forum: Plugins
In reply to: [Direct Stripe] How to pass this additional param?Thanks Nicolas. I did read the filter and hooks guide. A quick query. In which file do I make these changes provided that I want to collect recurring (subscription) as well as one-off payments to. That will go inside theme’s functions.php. Right?
Also, I know I’m asking for too much… But if you can really help me out with this, that’d be really great. Can you help me with gist/code that I can put in my functions.php?
- This reply was modified 6 years ago by shalintj.
Forum: Plugins
In reply to: [Direct Stripe] How to pass this additional param?Hey Nicolas. Were you able to look into this?
Thanks for your help. Much appreciated.
Forum: Plugins
In reply to: [Direct Stripe] How to pass this additional param?Thanks for the super quick reply.
Sorry! That didn’t work. Here’s a demo page for the same:
https://checkout.videodojo.co/70-2/Here’s what Stripe logs say: https://cl.ly/3f96b8a5455b
From what I understand, I think we will have to pass this ‘cross_border_classification’ right when the first request is submitted to Stripe along with card details, name etc.
Forum: Plugins
In reply to: [Shortcodes by Angie Makes] Dont show code of the shortcode in post excerptsHi Tom.. I ran in to the same issue today. Were you able to find any solution for this?