PaymentLink constructor
const
PaymentLink({
- required bool active,
- required PaymentLinksResourceAfterCompletion afterCompletion,
- required bool allowPromotionCodes,
- BillingPortalConfigurationApplicationOrId? application,
- int? applicationFeeAmount,
- double? applicationFeePercent,
- required PaymentLinksResourceAutomaticTax automaticTax,
- required PaymentLinkBillingAddressCollection billingAddressCollection,
- CheckoutSessionConsentCollection? consentCollection,
- required String currency,
- required List<
PaymentLinksResourceCustomFields> customFields, - required PaymentLinksResourceCustomText customText,
- required PaymentLinkCustomerCreation customerCreation,
- required String id,
- String? inactiveMessage,
- PaymentLinkInvoiceCreation? invoiceCreation,
- CheckoutSessionLineItems? lineItems,
- required bool livemode,
- required Map<
String, String> metadata, - AccountOrId? onBehalfOf,
- PaymentLinkPaymentIntentData? paymentIntentData,
- required PaymentLinkCustomerCreation paymentMethodCollection,
- List<
PaymentLinkPaymentMethodTypesItem> ? paymentMethodTypes, - required PaymentLinksResourcePhoneNumberCollection phoneNumberCollection,
- PaymentLinkRestrictions? restrictions,
- CheckoutSessionShippingAddressCollection? shippingAddressCollection,
- required List<
PaymentLinksResourceShippingOption> shippingOptions, - required PaymentLinkSubmitType submitType,
- PaymentLinkSubscriptionData? subscriptionData,
- required PaymentLinksResourceTaxIdCollection taxIdCollection,
- InvoiceTransferData? transferData,
- required String url,
PaymentLink
A payment link is a shareable URL that will take your customers to a hosted payment page. A payment link can be shared and used multiple times. When a customer opens a payment link it will open a new [checkout session](https://stripe.com/docs/api/checkout/sessions) to render the payment page. You can use [checkout session events](https://stripe.com/docs/api/events/types#event_types-checkout.session.completed) to track payments through payment links. Related guide: [Payment Links API](https://stripe.com/docs/payment-links)
Implementation
const PaymentLink({
required this.active,
required this.afterCompletion,
required this.allowPromotionCodes,
this.application,
this.applicationFeeAmount,
this.applicationFeePercent,
required this.automaticTax,
required this.billingAddressCollection,
this.consentCollection,
required this.currency,
required this.customFields,
required this.customText,
required this.customerCreation,
required this.id,
this.inactiveMessage,
this.invoiceCreation,
this.lineItems,
required this.livemode,
required this.metadata,
this.onBehalfOf,
this.paymentIntentData,
required this.paymentMethodCollection,
this.paymentMethodTypes,
required this.phoneNumberCollection,
this.restrictions,
this.shippingAddressCollection,
required this.shippingOptions,
required this.submitType,
this.subscriptionData,
required this.taxIdCollection,
this.transferData,
required this.url,
});