const stripe = require('stripe')('sk_test_4eC39HqLyjWDarjtT1zdp7dc');
const paymentLink = await stripe.paymentLinks.create({
line_items: [
{
price: 'price_1HKiSf2eZvKYlo2CxjF9qwbr',
quantity: 1,
},
],
});
Stripe.api_key = 'sk_test_4eC39HqLyjWDarjtT1zdp7dc'
payment_link = Stripe::PaymentLink.create({
line_items: [
{
price: 'price_1HKiSf2eZvKYlo2CxjF9qwbr',
quantity: 1,
},
],
})
stripe.api_key = 'sk_test_4eC39HqLyjWDarjtT1zdp7dc'
payment_link = stripe.PaymentLink.create(
line_items=[
{
"price": "price_1HKiSf2eZvKYlo2CxjF9qwbr",
"quantity": 1,
},
],
)
\Stripe\Stripe::setApiKey('sk_test_4eC39HqLyjWDarjtT1zdp7dc');
$payment_link = $stripe->paymentLinks->create([
'line_items' => [
[
'price' => 'price_1HKiSf2eZvKYlo2CxjF9qwbr',
'quantity' => 1,
],
],
]);
Stripe.apiKey = 'sk_test_4eC39HqLyjWDarjtT1zdp7dc';
PaymentLinkCreateParams params =
PaymentLinkCreateParams.builder()
.addLineItem(
PaymentLinkCreateParams.LineItem.builder()
.setPrice('price_1HKiSf2eZvKYlo2CxjF9qwbr')
.setQuantity(1L)
.build())
.build();
PaymentLink paymentLink = PaymentLink.create(params);
stripe.Key = "sk_test_4eC39HqLyjWDarjtT1zdp7dc"
params := &stripe.PaymentLinkParams{
LineItems: []*stripe.PaymentLinkLineItemParams{
{
Price: stripe.String("price_1HKiSf2eZvKYlo2CxjF9qwbr"),
Quantity: stripe.Int64(1),
},
},
}
pl, _ := paymentlink.New(params)
StripeConfiguration.ApiKey = "sk_test_4eC39HqLyjWDarjtT1zdp7dc";
var options = new PaymentLinkCreateOptions
{
LineItems = new List<PaymentLinkLineItemOptions>
{
new PaymentLinkLineItemOptions
{
Price = "price_1HKiSf2eZvKYlo2CxjF9qwbr",
Quantity = 1,
},
},
};
var service = new PaymentLinkService();
PaymentLink payment_link = service.Create(options);
Node.js
Ruby
Python
PHP
Java
Go
.NET
const stripe = require('stripe')('sk_test_4eC39HqLyjWDarjtT1zdp7dc');
const paymentLink = await stripe.paymentLinks.create({
line_items: [
{
price: 'price_1HKiSf2eZvKYlo2CxjF9qwbr',
quantity: 1,
},
],
});