createInvoiceLink method
Future<String>
createInvoiceLink(
- String title,
- String description,
- String payload,
- String providerToken,
- String currency,
- List<
LabeledPrice> prices, { - int? maxTipAmount,
- List<
int> ? suggestedTipAmounts, - String? providerData,
- String? photoUrl,
- int? photoSize,
- int? photoWidth,
- int? photoHeight,
- bool? needName,
- bool? needPhoneNumber,
- bool? needEmail,
- bool? needShippingAddress,
- bool? sendPhoneNumberToProvider,
- bool? sendEmailToProvider,
- bool? isFlexible,
Use this method to create a link for an invoice.
Returns the created invoice link as String on success
Implementation
Future<String> createInvoiceLink(
String title,
String description,
String payload,
String providerToken,
String currency,
List<LabeledPrice> prices,
{int? maxTipAmount,
List<int>? suggestedTipAmounts,
String? providerData,
String? photoUrl,
int? photoSize,
int? photoWidth,
int? photoHeight,
bool? needName,
bool? needPhoneNumber,
bool? needEmail,
bool? needShippingAddress,
bool? sendPhoneNumberToProvider,
bool? sendEmailToProvider,
bool? isFlexible}) async {
var requestUrl = _apiUri('createInvoiceLink');
var body = <String, dynamic>{};
return await HttpClient.httpPost(requestUrl, body: body);
}