Documentation ¶
Overview ¶
Package request allow merchants (like web sites selling physical or digital goods) to utilize one or more payment methods with minimal integration.
Index ¶
- type AddressErrors
- type AddressInit
- type MerchantValidationEvent
- type MerchantValidationEventInit
- type PayerErrors
- type PaymentAddress
- func (_this *PaymentAddress) AddressLine() *javascript.FrozenArray
- func (_this *PaymentAddress) City() string
- func (_this *PaymentAddress) Country() string
- func (_this *PaymentAddress) DependentLocality() string
- func (_this *PaymentAddress) JSValue() js.Value
- func (_this *PaymentAddress) Organization() string
- func (_this *PaymentAddress) Phone() string
- func (_this *PaymentAddress) PostalCode() string
- func (_this *PaymentAddress) Recipient() string
- func (_this *PaymentAddress) Region() string
- func (_this *PaymentAddress) SortingCode() string
- func (_this *PaymentAddress) ToJSON() (_result *javascript.Object)
- type PaymentComplete
- type PaymentCurrencyAmount
- type PaymentDetailsBase
- type PaymentDetailsInit
- type PaymentDetailsModifier
- type PaymentDetailsUpdate
- type PaymentItem
- type PaymentMethodChangeEvent
- type PaymentMethodChangeEventInit
- type PaymentMethodData
- type PaymentOptions
- type PaymentRequest
- func (_this *PaymentRequest) Abort() (_result *javascript.PromiseVoid)
- func (_this *PaymentRequest) AddEventMerchantValidation(listener func(event *MerchantValidationEvent, currentTarget *PaymentRequest)) js.Func
- func (_this *PaymentRequest) AddEventPaymentMethodChange(listener func(event *PaymentMethodChangeEvent, currentTarget *PaymentRequest)) js.Func
- func (_this *PaymentRequest) AddEventShippingAddressChange(listener func(event *PaymentRequestUpdateEvent, currentTarget *PaymentRequest)) js.Func
- func (_this *PaymentRequest) AddEventShippingOptionChange(listener func(event *PaymentRequestUpdateEvent, currentTarget *PaymentRequest)) js.Func
- func (_this *PaymentRequest) CanMakePayment() (_result *javascript.PromiseBool)
- func (_this *PaymentRequest) Id() string
- func (_this *PaymentRequest) OnMerchantValidation() domcore.EventHandlerFunc
- func (_this *PaymentRequest) OnPaymentMethodChange() domcore.EventHandlerFunc
- func (_this *PaymentRequest) OnShippingAddressChange() domcore.EventHandlerFunc
- func (_this *PaymentRequest) OnShippingOptionChange() domcore.EventHandlerFunc
- func (_this *PaymentRequest) SetOnMerchantValidation(listener func(event *MerchantValidationEvent, currentTarget *PaymentRequest)) js.Func
- func (_this *PaymentRequest) SetOnPaymentMethodChange(listener func(event *PaymentMethodChangeEvent, currentTarget *PaymentRequest)) js.Func
- func (_this *PaymentRequest) SetOnShippingAddressChange(listener func(event *PaymentRequestUpdateEvent, currentTarget *PaymentRequest)) js.Func
- func (_this *PaymentRequest) SetOnShippingOptionChange(listener func(event *PaymentRequestUpdateEvent, currentTarget *PaymentRequest)) js.Func
- func (_this *PaymentRequest) ShippingAddress() *PaymentAddress
- func (_this *PaymentRequest) ShippingOption() *string
- func (_this *PaymentRequest) ShippingType() *PaymentShippingType
- func (_this *PaymentRequest) Show(detailsPromise *PromisePaymentDetailsUpdate) (_result *PromisePaymentResponse)
- type PaymentRequestUpdateEvent
- type PaymentRequestUpdateEventInit
- type PaymentResponse
- func (_this *PaymentResponse) AddEventPayerDetailChange(...) js.Func
- func (_this *PaymentResponse) Complete(result *PaymentComplete) (_result *javascript.PromiseVoid)
- func (_this *PaymentResponse) Details() *javascript.Object
- func (_this *PaymentResponse) MethodName() string
- func (_this *PaymentResponse) OnPayerDetailChange() domcore.EventHandlerFunc
- func (_this *PaymentResponse) PayerEmail() *string
- func (_this *PaymentResponse) PayerName() *string
- func (_this *PaymentResponse) PayerPhone() *string
- func (_this *PaymentResponse) RequestId() string
- func (_this *PaymentResponse) Retry(errorFields *PaymentValidationErrors) (_result *javascript.PromiseVoid)
- func (_this *PaymentResponse) SetOnPayerDetailChange(...) js.Func
- func (_this *PaymentResponse) ShippingAddress() *PaymentAddress
- func (_this *PaymentResponse) ShippingOption() *string
- func (_this *PaymentResponse) ToJSON() (_result *javascript.Object)
- type PaymentShippingOption
- type PaymentShippingType
- type PaymentValidationErrors
- type PromisePaymentDetailsUpdate
- func (_this *PromisePaymentDetailsUpdate) Catch(onRejected *PromisePaymentDetailsUpdateOnRejected) (_result *PromisePaymentDetailsUpdate)
- func (_this *PromisePaymentDetailsUpdate) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePaymentDetailsUpdate)
- func (_this *PromisePaymentDetailsUpdate) JSValue() js.Value
- func (_this *PromisePaymentDetailsUpdate) Then(onFulfilled *PromisePaymentDetailsUpdateOnFulfilled, ...) (_result *PromisePaymentDetailsUpdate)
- type PromisePaymentDetailsUpdateOnFulfilled
- type PromisePaymentDetailsUpdateOnFulfilledFunc
- type PromisePaymentDetailsUpdateOnRejected
- type PromisePaymentDetailsUpdateOnRejectedFunc
- type PromisePaymentResponse
- func (_this *PromisePaymentResponse) Catch(onRejected *PromisePaymentResponseOnRejected) (_result *PromisePaymentResponse)
- func (_this *PromisePaymentResponse) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePaymentResponse)
- func (_this *PromisePaymentResponse) JSValue() js.Value
- func (_this *PromisePaymentResponse) Then(onFulfilled *PromisePaymentResponseOnFulfilled, ...) (_result *PromisePaymentResponse)
- type PromisePaymentResponseOnFulfilled
- type PromisePaymentResponseOnFulfilledFunc
- type PromisePaymentResponseOnRejected
- type PromisePaymentResponseOnRejectedFunc
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressErrors ¶
type AddressErrors struct { AddressLine string City string Country string DependentLocality string Organization string Phone string PostalCode string Recipient string Region string SortingCode string }
dictionary: AddressErrors
func AddressErrorsFromJS ¶
func AddressErrorsFromJS(value js.Wrapper) *AddressErrors
AddressErrorsFromJS is allocating a new AddressErrors object and copy all values from input javascript object
func (*AddressErrors) JSValue ¶
func (_this *AddressErrors) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type AddressInit ¶
type AddressInit struct { Country string AddressLine []string Region string City string DependentLocality string PostalCode string SortingCode string Organization string Recipient string Phone string }
dictionary: AddressInit
func AddressInitFromJS ¶
func AddressInitFromJS(value js.Wrapper) *AddressInit
AddressInitFromJS is allocating a new AddressInit object and copy all values from input javascript object
func (*AddressInit) JSValue ¶
func (_this *AddressInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type MerchantValidationEvent ¶
class: MerchantValidationEvent
func MerchantValidationEventFromJS ¶
func MerchantValidationEventFromJS(value js.Wrapper) *MerchantValidationEvent
MerchantValidationEventFromJS is casting a js.Wrapper into MerchantValidationEvent.
func NewMerchantValidationEvent ¶
func NewMerchantValidationEvent(_type string, eventInitDict *MerchantValidationEventInit) (_result *MerchantValidationEvent)
func (*MerchantValidationEvent) Complete ¶
func (_this *MerchantValidationEvent) Complete(merchantSessionPromise *javascript.Promise)
func (*MerchantValidationEvent) MethodName ¶
func (_this *MerchantValidationEvent) MethodName() string
MethodName returning attribute 'methodName' with type string (idl: DOMString).
func (*MerchantValidationEvent) ValidationURL ¶
func (_this *MerchantValidationEvent) ValidationURL() string
ValidationURL returning attribute 'validationURL' with type string (idl: USVString).
type MerchantValidationEventInit ¶
type MerchantValidationEventInit struct { Bubbles bool Cancelable bool Composed bool MethodName string ValidationURL string }
dictionary: MerchantValidationEventInit
func MerchantValidationEventInitFromJS ¶
func MerchantValidationEventInitFromJS(value js.Wrapper) *MerchantValidationEventInit
MerchantValidationEventInitFromJS is allocating a new MerchantValidationEventInit object and copy all values from input javascript object
func (*MerchantValidationEventInit) JSValue ¶
func (_this *MerchantValidationEventInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PayerErrors ¶
dictionary: PayerErrors
func PayerErrorsFromJS ¶
func PayerErrorsFromJS(value js.Wrapper) *PayerErrors
PayerErrorsFromJS is allocating a new PayerErrors object and copy all values from input javascript object
func (*PayerErrors) JSValue ¶
func (_this *PayerErrors) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PaymentAddress ¶
type PaymentAddress struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: PaymentAddress
func PaymentAddressFromJS ¶
func PaymentAddressFromJS(value js.Wrapper) *PaymentAddress
PaymentAddressFromJS is casting a js.Wrapper into PaymentAddress.
func (*PaymentAddress) AddressLine ¶
func (_this *PaymentAddress) AddressLine() *javascript.FrozenArray
AddressLine returning attribute 'addressLine' with type javascript.FrozenArray (idl: FrozenArray).
func (*PaymentAddress) City ¶
func (_this *PaymentAddress) City() string
City returning attribute 'city' with type string (idl: DOMString).
func (*PaymentAddress) Country ¶
func (_this *PaymentAddress) Country() string
Country returning attribute 'country' with type string (idl: DOMString).
func (*PaymentAddress) DependentLocality ¶
func (_this *PaymentAddress) DependentLocality() string
DependentLocality returning attribute 'dependentLocality' with type string (idl: DOMString).
func (*PaymentAddress) JSValue ¶
func (_this *PaymentAddress) JSValue() js.Value
func (*PaymentAddress) Organization ¶
func (_this *PaymentAddress) Organization() string
Organization returning attribute 'organization' with type string (idl: DOMString).
func (*PaymentAddress) Phone ¶
func (_this *PaymentAddress) Phone() string
Phone returning attribute 'phone' with type string (idl: DOMString).
func (*PaymentAddress) PostalCode ¶
func (_this *PaymentAddress) PostalCode() string
PostalCode returning attribute 'postalCode' with type string (idl: DOMString).
func (*PaymentAddress) Recipient ¶
func (_this *PaymentAddress) Recipient() string
Recipient returning attribute 'recipient' with type string (idl: DOMString).
func (*PaymentAddress) Region ¶
func (_this *PaymentAddress) Region() string
Region returning attribute 'region' with type string (idl: DOMString).
func (*PaymentAddress) SortingCode ¶
func (_this *PaymentAddress) SortingCode() string
SortingCode returning attribute 'sortingCode' with type string (idl: DOMString).
func (*PaymentAddress) ToJSON ¶
func (_this *PaymentAddress) ToJSON() (_result *javascript.Object)
type PaymentComplete ¶
type PaymentComplete int
enum: PaymentComplete
const ( FailPaymentComplete PaymentComplete = iota SuccessPaymentComplete UnknownPaymentComplete )
func PaymentCompleteFromJS ¶
func PaymentCompleteFromJS(value js.Value) PaymentComplete
PaymentCompleteFromJS is converting a javascript value into a PaymentComplete enum value.
func (*PaymentComplete) JSValue ¶
func (this *PaymentComplete) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (PaymentComplete) Value ¶
func (this PaymentComplete) Value() string
Value is converting this into javascript defined string value
type PaymentCurrencyAmount ¶
dictionary: PaymentCurrencyAmount
func PaymentCurrencyAmountFromJS ¶
func PaymentCurrencyAmountFromJS(value js.Wrapper) *PaymentCurrencyAmount
PaymentCurrencyAmountFromJS is allocating a new PaymentCurrencyAmount object and copy all values from input javascript object
func (*PaymentCurrencyAmount) JSValue ¶
func (_this *PaymentCurrencyAmount) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PaymentDetailsBase ¶
type PaymentDetailsBase struct { DisplayItems []*PaymentItem ShippingOptions []*PaymentShippingOption Modifiers []*PaymentDetailsModifier }
dictionary: PaymentDetailsBase
func PaymentDetailsBaseFromJS ¶
func PaymentDetailsBaseFromJS(value js.Wrapper) *PaymentDetailsBase
PaymentDetailsBaseFromJS is allocating a new PaymentDetailsBase object and copy all values from input javascript object
func (*PaymentDetailsBase) JSValue ¶
func (_this *PaymentDetailsBase) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PaymentDetailsInit ¶
type PaymentDetailsInit struct { DisplayItems []*PaymentItem ShippingOptions []*PaymentShippingOption Modifiers []*PaymentDetailsModifier Id string Total *PaymentItem }
dictionary: PaymentDetailsInit
func PaymentDetailsInitFromJS ¶
func PaymentDetailsInitFromJS(value js.Wrapper) *PaymentDetailsInit
PaymentDetailsInitFromJS is allocating a new PaymentDetailsInit object and copy all values from input javascript object
func (*PaymentDetailsInit) JSValue ¶
func (_this *PaymentDetailsInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PaymentDetailsModifier ¶
type PaymentDetailsModifier struct { SupportedMethods string Total *PaymentItem AdditionalDisplayItems []*PaymentItem Data *javascript.Object }
dictionary: PaymentDetailsModifier
func PaymentDetailsModifierFromJS ¶
func PaymentDetailsModifierFromJS(value js.Wrapper) *PaymentDetailsModifier
PaymentDetailsModifierFromJS is allocating a new PaymentDetailsModifier object and copy all values from input javascript object
func (*PaymentDetailsModifier) JSValue ¶
func (_this *PaymentDetailsModifier) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PaymentDetailsUpdate ¶
type PaymentDetailsUpdate struct { DisplayItems []*PaymentItem ShippingOptions []*PaymentShippingOption Modifiers []*PaymentDetailsModifier Error string Total *PaymentItem ShippingAddressErrors *AddressErrors PayerErrors *PayerErrors PaymentMethodErrors *javascript.Object }
dictionary: PaymentDetailsUpdate
func PaymentDetailsUpdateFromJS ¶
func PaymentDetailsUpdateFromJS(value js.Wrapper) *PaymentDetailsUpdate
PaymentDetailsUpdateFromJS is allocating a new PaymentDetailsUpdate object and copy all values from input javascript object
func (*PaymentDetailsUpdate) JSValue ¶
func (_this *PaymentDetailsUpdate) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PaymentItem ¶
type PaymentItem struct { Label string Amount *PaymentCurrencyAmount Pending bool }
dictionary: PaymentItem
func PaymentItemFromJS ¶
func PaymentItemFromJS(value js.Wrapper) *PaymentItem
PaymentItemFromJS is allocating a new PaymentItem object and copy all values from input javascript object
func (*PaymentItem) JSValue ¶
func (_this *PaymentItem) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PaymentMethodChangeEvent ¶
type PaymentMethodChangeEvent struct {
PaymentRequestUpdateEvent
}
class: PaymentMethodChangeEvent
func NewPaymentMethodChangeEvent ¶
func NewPaymentMethodChangeEvent(_type string, eventInitDict *PaymentMethodChangeEventInit) (_result *PaymentMethodChangeEvent)
func PaymentMethodChangeEventFromJS ¶
func PaymentMethodChangeEventFromJS(value js.Wrapper) *PaymentMethodChangeEvent
PaymentMethodChangeEventFromJS is casting a js.Wrapper into PaymentMethodChangeEvent.
func (*PaymentMethodChangeEvent) MethodDetails ¶
func (_this *PaymentMethodChangeEvent) MethodDetails() *javascript.Object
MethodDetails returning attribute 'methodDetails' with type javascript.Object (idl: object).
func (*PaymentMethodChangeEvent) MethodName ¶
func (_this *PaymentMethodChangeEvent) MethodName() string
MethodName returning attribute 'methodName' with type string (idl: DOMString).
type PaymentMethodChangeEventInit ¶
type PaymentMethodChangeEventInit struct { Bubbles bool Cancelable bool Composed bool MethodName string MethodDetails *javascript.Object }
dictionary: PaymentMethodChangeEventInit
func PaymentMethodChangeEventInitFromJS ¶
func PaymentMethodChangeEventInitFromJS(value js.Wrapper) *PaymentMethodChangeEventInit
PaymentMethodChangeEventInitFromJS is allocating a new PaymentMethodChangeEventInit object and copy all values from input javascript object
func (*PaymentMethodChangeEventInit) JSValue ¶
func (_this *PaymentMethodChangeEventInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PaymentMethodData ¶
type PaymentMethodData struct { SupportedMethods string Data *javascript.Object }
dictionary: PaymentMethodData
func PaymentMethodDataFromJS ¶
func PaymentMethodDataFromJS(value js.Wrapper) *PaymentMethodData
PaymentMethodDataFromJS is allocating a new PaymentMethodData object and copy all values from input javascript object
func (*PaymentMethodData) JSValue ¶
func (_this *PaymentMethodData) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PaymentOptions ¶
type PaymentOptions struct { RequestPayerName bool RequestBillingAddress bool RequestPayerEmail bool RequestPayerPhone bool RequestShipping bool ShippingType PaymentShippingType }
dictionary: PaymentOptions
func PaymentOptionsFromJS ¶
func PaymentOptionsFromJS(value js.Wrapper) *PaymentOptions
PaymentOptionsFromJS is allocating a new PaymentOptions object and copy all values from input javascript object
func (*PaymentOptions) JSValue ¶
func (_this *PaymentOptions) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PaymentRequest ¶
type PaymentRequest struct {
domcore.EventTarget
}
class: PaymentRequest
func NewPaymentRequest ¶
func NewPaymentRequest(methodData []*PaymentMethodData, details *PaymentDetailsInit, options *PaymentOptions) (_result *PaymentRequest)
func PaymentRequestFromJS ¶
func PaymentRequestFromJS(value js.Wrapper) *PaymentRequest
PaymentRequestFromJS is casting a js.Wrapper into PaymentRequest.
func (*PaymentRequest) Abort ¶
func (_this *PaymentRequest) Abort() (_result *javascript.PromiseVoid)
func (*PaymentRequest) AddEventMerchantValidation ¶
func (_this *PaymentRequest) AddEventMerchantValidation(listener func(event *MerchantValidationEvent, currentTarget *PaymentRequest)) js.Func
AddMerchantValidation is adding doing AddEventListener for 'MerchantValidation' on target. This method is returning allocated javascript function that need to be released.
func (*PaymentRequest) AddEventPaymentMethodChange ¶
func (_this *PaymentRequest) AddEventPaymentMethodChange(listener func(event *PaymentMethodChangeEvent, currentTarget *PaymentRequest)) js.Func
AddPaymentMethodChange is adding doing AddEventListener for 'PaymentMethodChange' on target. This method is returning allocated javascript function that need to be released.
func (*PaymentRequest) AddEventShippingAddressChange ¶
func (_this *PaymentRequest) AddEventShippingAddressChange(listener func(event *PaymentRequestUpdateEvent, currentTarget *PaymentRequest)) js.Func
AddShippingAddressChange is adding doing AddEventListener for 'ShippingAddressChange' on target. This method is returning allocated javascript function that need to be released.
func (*PaymentRequest) AddEventShippingOptionChange ¶
func (_this *PaymentRequest) AddEventShippingOptionChange(listener func(event *PaymentRequestUpdateEvent, currentTarget *PaymentRequest)) js.Func
AddShippingOptionChange is adding doing AddEventListener for 'ShippingOptionChange' on target. This method is returning allocated javascript function that need to be released.
func (*PaymentRequest) CanMakePayment ¶
func (_this *PaymentRequest) CanMakePayment() (_result *javascript.PromiseBool)
func (*PaymentRequest) Id ¶
func (_this *PaymentRequest) Id() string
Id returning attribute 'id' with type string (idl: DOMString).
func (*PaymentRequest) OnMerchantValidation ¶
func (_this *PaymentRequest) OnMerchantValidation() domcore.EventHandlerFunc
OnMerchantValidation returning attribute 'onmerchantvalidation' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*PaymentRequest) OnPaymentMethodChange ¶
func (_this *PaymentRequest) OnPaymentMethodChange() domcore.EventHandlerFunc
OnPaymentMethodChange returning attribute 'onpaymentmethodchange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*PaymentRequest) OnShippingAddressChange ¶
func (_this *PaymentRequest) OnShippingAddressChange() domcore.EventHandlerFunc
OnShippingAddressChange returning attribute 'onshippingaddresschange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*PaymentRequest) OnShippingOptionChange ¶
func (_this *PaymentRequest) OnShippingOptionChange() domcore.EventHandlerFunc
OnShippingOptionChange returning attribute 'onshippingoptionchange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*PaymentRequest) SetOnMerchantValidation ¶
func (_this *PaymentRequest) SetOnMerchantValidation(listener func(event *MerchantValidationEvent, currentTarget *PaymentRequest)) js.Func
SetOnMerchantValidation is assigning a function to 'onmerchantvalidation'. This This method is returning allocated javascript function that need to be released.
func (*PaymentRequest) SetOnPaymentMethodChange ¶
func (_this *PaymentRequest) SetOnPaymentMethodChange(listener func(event *PaymentMethodChangeEvent, currentTarget *PaymentRequest)) js.Func
SetOnPaymentMethodChange is assigning a function to 'onpaymentmethodchange'. This This method is returning allocated javascript function that need to be released.
func (*PaymentRequest) SetOnShippingAddressChange ¶
func (_this *PaymentRequest) SetOnShippingAddressChange(listener func(event *PaymentRequestUpdateEvent, currentTarget *PaymentRequest)) js.Func
SetOnShippingAddressChange is assigning a function to 'onshippingaddresschange'. This This method is returning allocated javascript function that need to be released.
func (*PaymentRequest) SetOnShippingOptionChange ¶
func (_this *PaymentRequest) SetOnShippingOptionChange(listener func(event *PaymentRequestUpdateEvent, currentTarget *PaymentRequest)) js.Func
SetOnShippingOptionChange is assigning a function to 'onshippingoptionchange'. This This method is returning allocated javascript function that need to be released.
func (*PaymentRequest) ShippingAddress ¶
func (_this *PaymentRequest) ShippingAddress() *PaymentAddress
ShippingAddress returning attribute 'shippingAddress' with type PaymentAddress (idl: PaymentAddress).
func (*PaymentRequest) ShippingOption ¶
func (_this *PaymentRequest) ShippingOption() *string
ShippingOption returning attribute 'shippingOption' with type string (idl: DOMString).
func (*PaymentRequest) ShippingType ¶
func (_this *PaymentRequest) ShippingType() *PaymentShippingType
ShippingType returning attribute 'shippingType' with type PaymentShippingType (idl: PaymentShippingType).
func (*PaymentRequest) Show ¶
func (_this *PaymentRequest) Show(detailsPromise *PromisePaymentDetailsUpdate) (_result *PromisePaymentResponse)
type PaymentRequestUpdateEvent ¶
class: PaymentRequestUpdateEvent
func NewPaymentRequestUpdateEvent ¶
func NewPaymentRequestUpdateEvent(_type string, eventInitDict *PaymentRequestUpdateEventInit) (_result *PaymentRequestUpdateEvent)
func PaymentRequestUpdateEventFromJS ¶
func PaymentRequestUpdateEventFromJS(value js.Wrapper) *PaymentRequestUpdateEvent
PaymentRequestUpdateEventFromJS is casting a js.Wrapper into PaymentRequestUpdateEvent.
func (*PaymentRequestUpdateEvent) UpdateWith ¶
func (_this *PaymentRequestUpdateEvent) UpdateWith(detailsPromise *PromisePaymentDetailsUpdate)
type PaymentRequestUpdateEventInit ¶
dictionary: PaymentRequestUpdateEventInit
func PaymentRequestUpdateEventInitFromJS ¶
func PaymentRequestUpdateEventInitFromJS(value js.Wrapper) *PaymentRequestUpdateEventInit
PaymentRequestUpdateEventInitFromJS is allocating a new PaymentRequestUpdateEventInit object and copy all values from input javascript object
func (*PaymentRequestUpdateEventInit) JSValue ¶
func (_this *PaymentRequestUpdateEventInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PaymentResponse ¶
type PaymentResponse struct {
domcore.EventTarget
}
class: PaymentResponse
func PaymentResponseFromJS ¶
func PaymentResponseFromJS(value js.Wrapper) *PaymentResponse
PaymentResponseFromJS is casting a js.Wrapper into PaymentResponse.
func (*PaymentResponse) AddEventPayerDetailChange ¶
func (_this *PaymentResponse) AddEventPayerDetailChange(listener func(event *PaymentRequestUpdateEvent, currentTarget *PaymentResponse)) js.Func
AddPayerDetailChange is adding doing AddEventListener for 'PayerDetailChange' on target. This method is returning allocated javascript function that need to be released.
func (*PaymentResponse) Complete ¶
func (_this *PaymentResponse) Complete(result *PaymentComplete) (_result *javascript.PromiseVoid)
func (*PaymentResponse) Details ¶
func (_this *PaymentResponse) Details() *javascript.Object
Details returning attribute 'details' with type javascript.Object (idl: object).
func (*PaymentResponse) MethodName ¶
func (_this *PaymentResponse) MethodName() string
MethodName returning attribute 'methodName' with type string (idl: DOMString).
func (*PaymentResponse) OnPayerDetailChange ¶
func (_this *PaymentResponse) OnPayerDetailChange() domcore.EventHandlerFunc
OnPayerDetailChange returning attribute 'onpayerdetailchange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*PaymentResponse) PayerEmail ¶
func (_this *PaymentResponse) PayerEmail() *string
PayerEmail returning attribute 'payerEmail' with type string (idl: DOMString).
func (*PaymentResponse) PayerName ¶
func (_this *PaymentResponse) PayerName() *string
PayerName returning attribute 'payerName' with type string (idl: DOMString).
func (*PaymentResponse) PayerPhone ¶
func (_this *PaymentResponse) PayerPhone() *string
PayerPhone returning attribute 'payerPhone' with type string (idl: DOMString).
func (*PaymentResponse) RequestId ¶
func (_this *PaymentResponse) RequestId() string
RequestId returning attribute 'requestId' with type string (idl: DOMString).
func (*PaymentResponse) Retry ¶
func (_this *PaymentResponse) Retry(errorFields *PaymentValidationErrors) (_result *javascript.PromiseVoid)
func (*PaymentResponse) SetOnPayerDetailChange ¶
func (_this *PaymentResponse) SetOnPayerDetailChange(listener func(event *PaymentRequestUpdateEvent, currentTarget *PaymentResponse)) js.Func
SetOnPayerDetailChange is assigning a function to 'onpayerdetailchange'. This This method is returning allocated javascript function that need to be released.
func (*PaymentResponse) ShippingAddress ¶
func (_this *PaymentResponse) ShippingAddress() *PaymentAddress
ShippingAddress returning attribute 'shippingAddress' with type PaymentAddress (idl: PaymentAddress).
func (*PaymentResponse) ShippingOption ¶
func (_this *PaymentResponse) ShippingOption() *string
ShippingOption returning attribute 'shippingOption' with type string (idl: DOMString).
func (*PaymentResponse) ToJSON ¶
func (_this *PaymentResponse) ToJSON() (_result *javascript.Object)
type PaymentShippingOption ¶
type PaymentShippingOption struct { Id string Label string Amount *PaymentCurrencyAmount Selected bool }
dictionary: PaymentShippingOption
func PaymentShippingOptionFromJS ¶
func PaymentShippingOptionFromJS(value js.Wrapper) *PaymentShippingOption
PaymentShippingOptionFromJS is allocating a new PaymentShippingOption object and copy all values from input javascript object
func (*PaymentShippingOption) JSValue ¶
func (_this *PaymentShippingOption) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PaymentShippingType ¶
type PaymentShippingType int
enum: PaymentShippingType
const ( ShippingPaymentShippingType PaymentShippingType = iota DeliveryPaymentShippingType PickupPaymentShippingType )
func PaymentShippingTypeFromJS ¶
func PaymentShippingTypeFromJS(value js.Value) PaymentShippingType
PaymentShippingTypeFromJS is converting a javascript value into a PaymentShippingType enum value.
func (*PaymentShippingType) JSValue ¶
func (this *PaymentShippingType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (PaymentShippingType) Value ¶
func (this PaymentShippingType) Value() string
Value is converting this into javascript defined string value
type PaymentValidationErrors ¶
type PaymentValidationErrors struct { Payer *PayerErrors ShippingAddress *AddressErrors Error string PaymentMethod *javascript.Object }
dictionary: PaymentValidationErrors
func PaymentValidationErrorsFromJS ¶
func PaymentValidationErrorsFromJS(value js.Wrapper) *PaymentValidationErrors
PaymentValidationErrorsFromJS is allocating a new PaymentValidationErrors object and copy all values from input javascript object
func (*PaymentValidationErrors) JSValue ¶
func (_this *PaymentValidationErrors) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PromisePaymentDetailsUpdate ¶
type PromisePaymentDetailsUpdate struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromisePaymentDetailsUpdateFromJS ¶
func PromisePaymentDetailsUpdateFromJS(value js.Wrapper) *PromisePaymentDetailsUpdate
PromisePaymentDetailsUpdateFromJS is casting a js.Wrapper into PromisePaymentDetailsUpdate.
func (*PromisePaymentDetailsUpdate) Catch ¶
func (_this *PromisePaymentDetailsUpdate) Catch(onRejected *PromisePaymentDetailsUpdateOnRejected) (_result *PromisePaymentDetailsUpdate)
func (*PromisePaymentDetailsUpdate) Finally ¶
func (_this *PromisePaymentDetailsUpdate) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePaymentDetailsUpdate)
func (*PromisePaymentDetailsUpdate) JSValue ¶
func (_this *PromisePaymentDetailsUpdate) JSValue() js.Value
func (*PromisePaymentDetailsUpdate) Then ¶
func (_this *PromisePaymentDetailsUpdate) Then(onFulfilled *PromisePaymentDetailsUpdateOnFulfilled, onRejected *PromisePaymentDetailsUpdateOnRejected) (_result *PromisePaymentDetailsUpdate)
type PromisePaymentDetailsUpdateOnFulfilled ¶
PromisePaymentDetailsUpdateOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromisePaymentDetailsUpdateOnFulfilledToJS ¶
func PromisePaymentDetailsUpdateOnFulfilledToJS(callback PromisePaymentDetailsUpdateOnFulfilledFunc) *PromisePaymentDetailsUpdateOnFulfilled
type PromisePaymentDetailsUpdateOnFulfilledFunc ¶
type PromisePaymentDetailsUpdateOnFulfilledFunc func(value *PaymentDetailsUpdate)
callback: PromiseTemplateOnFulfilled
func PromisePaymentDetailsUpdateOnFulfilledFromJS ¶
func PromisePaymentDetailsUpdateOnFulfilledFromJS(_value js.Value) PromisePaymentDetailsUpdateOnFulfilledFunc
type PromisePaymentDetailsUpdateOnRejected ¶
PromisePaymentDetailsUpdateOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromisePaymentDetailsUpdateOnRejectedToJS ¶
func PromisePaymentDetailsUpdateOnRejectedToJS(callback PromisePaymentDetailsUpdateOnRejectedFunc) *PromisePaymentDetailsUpdateOnRejected
type PromisePaymentDetailsUpdateOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromisePaymentDetailsUpdateOnRejectedFromJS ¶
func PromisePaymentDetailsUpdateOnRejectedFromJS(_value js.Value) PromisePaymentDetailsUpdateOnRejectedFunc
type PromisePaymentResponse ¶
type PromisePaymentResponse struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromisePaymentResponseFromJS ¶
func PromisePaymentResponseFromJS(value js.Wrapper) *PromisePaymentResponse
PromisePaymentResponseFromJS is casting a js.Wrapper into PromisePaymentResponse.
func (*PromisePaymentResponse) Catch ¶
func (_this *PromisePaymentResponse) Catch(onRejected *PromisePaymentResponseOnRejected) (_result *PromisePaymentResponse)
func (*PromisePaymentResponse) Finally ¶
func (_this *PromisePaymentResponse) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePaymentResponse)
func (*PromisePaymentResponse) JSValue ¶
func (_this *PromisePaymentResponse) JSValue() js.Value
func (*PromisePaymentResponse) Then ¶
func (_this *PromisePaymentResponse) Then(onFulfilled *PromisePaymentResponseOnFulfilled, onRejected *PromisePaymentResponseOnRejected) (_result *PromisePaymentResponse)
type PromisePaymentResponseOnFulfilled ¶
PromisePaymentResponseOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromisePaymentResponseOnFulfilledToJS ¶
func PromisePaymentResponseOnFulfilledToJS(callback PromisePaymentResponseOnFulfilledFunc) *PromisePaymentResponseOnFulfilled
type PromisePaymentResponseOnFulfilledFunc ¶
type PromisePaymentResponseOnFulfilledFunc func(value *PaymentResponse)
callback: PromiseTemplateOnFulfilled
func PromisePaymentResponseOnFulfilledFromJS ¶
func PromisePaymentResponseOnFulfilledFromJS(_value js.Value) PromisePaymentResponseOnFulfilledFunc
type PromisePaymentResponseOnRejected ¶
PromisePaymentResponseOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromisePaymentResponseOnRejectedToJS ¶
func PromisePaymentResponseOnRejectedToJS(callback PromisePaymentResponseOnRejectedFunc) *PromisePaymentResponseOnRejected
type PromisePaymentResponseOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromisePaymentResponseOnRejectedFromJS ¶
func PromisePaymentResponseOnRejectedFromJS(_value js.Value) PromisePaymentResponseOnRejectedFunc