// Set your secret key. Remember to switch to your live secret key in production.
// See your keys here: https://dashboard.stripe.com/apikeys
Stripe.apiKey = "sk_test_51NxEfeE814vpZZinxTAUyMUJqnAzzaHrdUAsjFvcRBlQnvxIskJTGYQXEMVRTL70WTxBcP3z750MthjYTGtNlIAs00IdzrZLGh";
PaymentLinkCreateParams params =
PaymentLinkCreateParams.builder()
.addLineItem(
PaymentLinkCreateParams.LineItem.builder()
.setPrice("{{PRICE_ID}}")
.setQuantity(1L)
.build()
)
.build();
PaymentLink paymentLink = PaymentLink.create(params);