#kamal_subscription-php
1 messages ยท Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- kamal-boss_api, 2 days ago, 30 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1238550691409297450
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
no
Hi ๐
If you are just getting started we recommend reviewing our developer docs. You can get started with our Quickstart integrations: https://docs.stripe.com/payments/quickstart
My code is working for cards only but apple pay and goolge pay is not showing and when i added a new code with another way then one time payment is working but subscrption not working
- Can you stick to one question at a time
- What exact code have you used?
oksy sure
i used payment code in php and it works but not showing apple pay and goolge pay
let me share code
<form class="b-form-panel__form js-animate-in h-animate-in-fade" action="#"
method="POST" id="payment-form">
<input type="hidden" name="name" id="name" value="<?php echo $name; ?>">
<input type="hidden" name="email" id="email" value="<?php echo $gocardless_email; ?>">
<input type="hidden" name="data" id="mdata" value="<?php echo $_GET['data']; ?>">
<!-- <div class="js-booking-form__message"></div> -->
<div class="b-form-panel__field">
<div class="b-form-panel__direct-debit">
<div class="b-form-panel__direct-debit__top">
<div>Payments are protected by <strong>Stripe</strong></div>
<div>
<img height="50"
src="/wp-content/uploads/2024/02/stripe.svg" alt="Stripe Payments">
</div>
</div>
<!-- <div id="payment-request-button"></div> -->
<div id="card-element" class="my-card-element"></div>
</div>
<label class="is-invalid" id="card-errors">
</label>
</div>
<button type="submit" id="submit-button" class="e-btn" title="Sign Up">Pay Now</button>
</form>
https://pastebin.com/nGHMA5Ye
js code
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
- For Apple & Google Pay, have you turned them on in your Stripe dashboard? Have you registered domains for them?
with another code its working but then subscription not woking
Sorry but this doesn't make any sense to me
What is not working? The subscription creation? Saving the payment method?
https://www.stagebox.uk/stripe/
check here you will got the issue
If you cannot share your relevant code, I cannot help you
let me share all files
okay so let me tell you flow
If you look at the integration quickstart we have here: https://docs.stripe.com/billing/quickstart
Can you tell me what part of your code is not working
first i create the customer and then i chage one time payment and it works but when subscription it shows payment peneing
How are you creating the subscription?
I creted a product in stripe
try {
$trial_end = strtotime('2024-09-01');
$subscription = \Stripe\Subscription::create([
'customer' => $customer_id,
'items' => [[
'price' => 'price_1Omme0FLqEmCnbAqB9lkGFXl',
]],
'payment_behavior' => 'default_incomplete',
'trial_end' => $trial_end,
'billing_cycle_anchor' => $trial_end,
'proration_behavior' => 'create_prorations',
]);
}catch(Exception $e) {
$output = $e->getMessage();
}
echo json_encode($output);
i think its working
That is a subscription. It appears to include a free trial
yes the subscrption start from sept
You still did not provide the code you use to create a subscription. Without clear code examples we cannot offer much advice.
Okay. Sounds good