Implementation
Map<String, dynamic> get map {
return {
pt_profile_id: this.profileId,
pt_client_key: this.clientKey,
pt_server_key: this.serverKey,
pt_screen_title: this.screentTitle,
pt_merchant_name: this.merchantName,
pt_amount: this.amount,
pt_currency_code: this.currencyCode,
pt_tokenise_type: this.tokeniseType?.name,
pt_token_format: this.tokenFormat?.name,
pt_token: this.token,
pt_transaction_reference: this.transactionReference,
pt_cart_id: this.cartId,
pt_cart_description: this.cartDescription,
pt_merchant_country_code: this.merchantCountryCode,
pt_samsung_pay_token: this.samsungPayToken,
pt_billing_details: this.billingDetails?.map,
pt_shipping_details: this.shippingDetails?.map,
pt_language: this.locale?.name,
pt_show_billing_info: this.showBillingInfo,
pt_show_shipping_info: this.showShippingInfo,
pt_force_validate_shipping: this.forceShippingInfo,
pt_ios_theme: this.iOSThemeConfigurations?.map,
pt_merchant_id: this.merchantApplePayIndentifier,
pt_simplify_apple_pay_validation: this.simplifyApplePayValidation,
pt_hide_card_scanner: this.hideCardScanner,
pt_transaction_class: this.transactionClass?.name,
pt_transaction_type: this.transactionType?.name,
pt_apms: getApmsConcatenated(this.alternativePaymentMethods),
pt_link_billing_name: this.linkBillingNameWithCardHolderName,
pt_enable_zero_contacts: this.enableZeroContacts,
pt_is_digital_product: this.isDigitalProduct,
pt_expiry_time: this.expiryTime,
pt_card_discounts: this.cardDiscounts?.map((e) => e.map).toList(),
pt_payment_networks: getPaymentNetworksConcatenated(this.paymentNetworks),
pt_card_approval: this.cardApproval?.map
};
}