- 
                    
                    - All Implemented Interfaces:
 
 public class TransactionInfoJsonBuilderThis class provides methods to build TransactionInfoin JSON format.
- 
                
                    
                    - 
                                
                            
                                Field SummaryFields Modifier and Type Field Description private StringcurrencyCodeprivate StringcountryCodeprivate StringtransactionIdprivate StringtotalPriceStatusprivate StringtotalPriceprivate StringtotalPriceLabelprivate StringcheckoutOption
 - 
                                
                            
                                Method SummaryModifier and Type Method Description TransactionInfoJsonBuildersetCurrencyCode(@NonNull() String currencyCode)Required. TransactionInfoJsonBuildersetCountryCode(@NonNull() String countryCode)Optional (required for EEA countries). TransactionInfoJsonBuildersetTransactionId(@NonNull() String transactionId)Optional. TransactionInfoJsonBuildersetTotalPriceStatus(@NonNull() String totalPriceStatus)Required. TransactionInfoJsonBuildersetTotalPrice(@NonNull() String totalPrice)Required. TransactionInfoJsonBuildersetTotalPriceLabel(@NonNull() String totalPriceLabel)Optional. TransactionInfoJsonBuildersetCheckoutOption(@NonNull() String checkoutOption)Optional. JSONObjecttoJson()Returns the TransactionInfoas JSONObject.- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        setCurrencyCodeTransactionInfoJsonBuilder setCurrencyCode(@NonNull() String currencyCode) Required. Sets the currency code. - Parameters:
- currencyCode- The ISO 4217 alphabetic currency code.
 
 - 
                                        setCountryCodeTransactionInfoJsonBuilder setCountryCode(@NonNull() String countryCode) Optional (required for EEA countries). Sets the country code. - Parameters:
- countryCode- The ISO 3166-1 alpha-2 country code where the transaction is processed.
 
 - 
                                        setTransactionIdTransactionInfoJsonBuilder setTransactionId(@NonNull() String transactionId) Optional. Sets the transaction id. - Parameters:
- transactionId- A unique ID that identifies a transaction attempt.
 
 - 
                                        setTotalPriceStatusTransactionInfoJsonBuilder setTotalPriceStatus(@NonNull() String totalPriceStatus) Required. Sets the status of the total price used: NOT_CURRENTLY_KNOWN: Use this property for a capability check. ESTIMATED: Total price might adjust based on the details of the response, such as sales tax collected that's based on a billing address. FINAL: Total price doesn't change from the amount presented to the shopper. - Parameters:
- totalPriceStatus- The status of the total price.
 
 - 
                                        setTotalPriceTransactionInfoJsonBuilder setTotalPrice(@NonNull() String totalPrice) Required. Sets the total price. - Parameters:
- totalPrice- Total monetary value of the transaction with an optional decimal precision of two decimal places.
 
 - 
                                        setTotalPriceLabelTransactionInfoJsonBuilder setTotalPriceLabel(@NonNull() String totalPriceLabel) Optional. Sets the total price label. - Parameters:
- totalPriceLabel- Custom label for the total price within the display items.
 
 - 
                                        setCheckoutOptionTransactionInfoJsonBuilder setCheckoutOption(@NonNull() String checkoutOption) Optional. Sets the checkout option, affects the submit button text displayed in the Google Pay payment sheet. DEFAULT: Standard text applies for the given totalPriceStatus (default). COMPLETE_IMMEDIATE_PURCHASE: The selected payment method is charged immediately after the payer confirms their selections. This option is only available when totalPriceStatus is set to FINAL. - Parameters:
- checkoutOption- The checkout option.
 
 - 
                                        toJson@NonNull() JSONObject toJson() Returns the TransactionInfoas JSONObject.
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-