#mak_code
1 messages ยท Page 1 of 1 (latest)
๐ 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/1301955653593464914
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
Can you clarify what exactly you are trying to do here? How were you trying to use the Payment Link URL?
hi
I need help with the Integration process with stripe Payment Gateway on my reseller club account
What exactly have you tried?
Reseller has a default php integration kit which requires us to upload the files in the kit on our server. I have tried using a stripe sample code which has the checkout.php file and other files
Okay, what Stripe product do you want to use?
Payment Link, Checkout Session, Payment Element?
what i need now is the code to add to script i share in order to take payments when an order is made on my site
Checkout Session i think
It sounds like you are not too familiar with Stripe integrations. In that case I think you should build a simple stand-alone Checkout integration like we document here: https://docs.stripe.com/checkout/quickstart
Don't try to plug it in to anything until after you have this fully working and you can test it
Then you can try including it in your existing PHP and see where you get errors. We can help once you have specific errors you are asking about.
Hello! I'm taking over and catching up...
That's not a Stripe error message. Do you know where that error is coming from?
from my server
trying to integrate the paymnent gateway on my server and connect to my site
thats the code
I can't say, this isn't Stripe code and the checksum in question seems to have nothing to do with Stripe. We can only help with Stripe code/SDKs/APIs/etc. here.
you seem not to understand me
there is a stripe code within the code i sent
require_once '../vendor/autoload.php';
require_once '../secrets.php';
$stripe_secret_key="sk_test_51Mpt61LL5sJox7yoBMi2B09K5Rwd8wYcYbb2aNTr29vXBPesxBhaLQiLZTFzvX4BBwZvxZtooy9mL3cT0QIx5GFg00TKuReV6i";
\Stripe\Stripe::setApiKey($stripeSecretKey);
header('Content-Type: application/json');
$YOUR_DOMAIN = 'http://payment.pws.software';
$checkout_session = \Stripe\Checkout\Session::create([
'line_items' => [[
# Provide the exact Price ID (e.g. pr_1234) of the product you want to sell
'price' => '{{PRICE_ID}}',
'quantity' => 1,
]],
'mode' => 'payment',
'success_url' => $YOUR_DOMAIN . 'http://payment.pws.software/stripe/success.html',
'cancel_url' => $YOUR_DOMAIN . 'http://payment.pws.software/stripe/cancel.html',
]);
header("HTTP/1.1 303 See Other");
header("Location: " . $checkout_session->url);
Right, but the error you're getting isn't related to that code.
It's coming from other code which doesn't seem related to Stripe.
so what do you recommend i do
how do i add the stripe payment gateway on my site to take payments for order?
You would need to debug the checksum error you're getting. Is the checksum error coming from code you wrote or code that someone else wrote?
I can assist you with the Stripe side of things, but I can't help with third-party code. You would need to talk to the third-party for help in that case.
What questions do you have?
can i get a step by step guide ?
A step-by-step guide was provided to you earlier in this same thread here: #1301955653593464914 message
Is that not what you want?
<?php
require_once '../vendor/autoload.php';
require_once '../secrets.php';
\Stripe\Stripe::setApiKey($stripeSecretKey);
header('Content-Type: application/json');
$YOUR_DOMAIN = 'https://payment.pws.software/stripe';
$checkout_session = \Stripe\Checkout\Session::create([
'line_items' => [[
# Provide the exact Price ID (e.g. pr_1234) of the product you want to sell
'price' => '{{PRICE_ID}}',
'quantity' => 1,
]],
'mode' => 'payment',
'success_url' => $YOUR_DOMAIN . 'https://payment.pws.software/strip/success.html',
'cancel_url' => $YOUR_DOMAIN . 'https://payment.pws.software/strip/cancel.html',
]);
header("HTTP/1.1 303 See Other");
header("Location: " . $checkout_session->url);
Check your server's error logs for the cause of the 500.
Also, {{PRICE_ID}} is a placeholder that's meant to be replaced with a Price ID.
what do i place at the price ID since its not a single product
Since this is just a test to help you get familiar with how this works I recommend you create a single test Product with a single test Price in the Dashboard and use that.