Documentation ¶
Overview ¶
Package payment enable Web applications to handle requests for payment.
Index ¶
- type CanMakePaymentEvent
- type CanMakePaymentEventInit
- type ImageObject
- type PaymentHandlerResponse
- type PaymentInstrument
- type PaymentInstruments
- func (_this *PaymentInstruments) Clear() (_result *javascript.PromiseVoid)
- func (_this *PaymentInstruments) Delete(instrumentKey string) (_result *javascript.PromiseBool)
- func (_this *PaymentInstruments) Get(instrumentKey string) (_result *javascript.Promise)
- func (_this *PaymentInstruments) Has(instrumentKey string) (_result *javascript.PromiseBool)
- func (_this *PaymentInstruments) JSValue() js.Value
- func (_this *PaymentInstruments) Keys() (_result *javascript.PromiseSequenceString)
- func (_this *PaymentInstruments) Set(instrumentKey string, details *PaymentInstrument) (_result *javascript.PromiseVoid)
- type PaymentManager
- type PaymentMethodChangeResponse
- type PaymentRequestEvent
- func (_this *PaymentRequestEvent) ChangePaymentMethod(methodName string, methodDetails *javascript.Object) (_result *PromiseNilPaymentMethodChangeResponse)
- func (_this *PaymentRequestEvent) InstrumentKey() string
- func (_this *PaymentRequestEvent) MethodData() *javascript.FrozenArray
- func (_this *PaymentRequestEvent) Modifiers() *javascript.FrozenArray
- func (_this *PaymentRequestEvent) OpenWindow(url string) (_result *client.PromiseNilWindowClient)
- func (_this *PaymentRequestEvent) PaymentRequestId() string
- func (_this *PaymentRequestEvent) PaymentRequestOrigin() string
- func (_this *PaymentRequestEvent) RequestBillingAddress() bool
- func (_this *PaymentRequestEvent) RespondWith(handlerResponsePromise *PromisePaymentHandlerResponse)
- func (_this *PaymentRequestEvent) TopOrigin() string
- func (_this *PaymentRequestEvent) Total() *javascript.Object
- type PaymentRequestEventInit
- type PromiseNilPaymentMethodChangeResponse
- func (_this *PromiseNilPaymentMethodChangeResponse) Catch(onRejected *PromiseNilPaymentMethodChangeResponseOnRejected) (_result *PromiseNilPaymentMethodChangeResponse)
- func (_this *PromiseNilPaymentMethodChangeResponse) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseNilPaymentMethodChangeResponse)
- func (_this *PromiseNilPaymentMethodChangeResponse) JSValue() js.Value
- func (_this *PromiseNilPaymentMethodChangeResponse) Then(onFulfilled *PromiseNilPaymentMethodChangeResponseOnFulfilled, ...) (_result *PromiseNilPaymentMethodChangeResponse)
- type PromiseNilPaymentMethodChangeResponseOnFulfilled
- type PromiseNilPaymentMethodChangeResponseOnFulfilledFunc
- type PromiseNilPaymentMethodChangeResponseOnRejected
- type PromiseNilPaymentMethodChangeResponseOnRejectedFunc
- type PromisePaymentHandlerResponse
- func (_this *PromisePaymentHandlerResponse) Catch(onRejected *PromisePaymentHandlerResponseOnRejected) (_result *PromisePaymentHandlerResponse)
- func (_this *PromisePaymentHandlerResponse) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePaymentHandlerResponse)
- func (_this *PromisePaymentHandlerResponse) JSValue() js.Value
- func (_this *PromisePaymentHandlerResponse) Then(onFulfilled *PromisePaymentHandlerResponseOnFulfilled, ...) (_result *PromisePaymentHandlerResponse)
- type PromisePaymentHandlerResponseOnFulfilled
- type PromisePaymentHandlerResponseOnFulfilledFunc
- type PromisePaymentHandlerResponseOnRejected
- type PromisePaymentHandlerResponseOnRejectedFunc
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CanMakePaymentEvent ¶
type CanMakePaymentEvent struct {
domcore.ExtendableEvent
}
class: CanMakePaymentEvent
func CanMakePaymentEventFromJS ¶
func CanMakePaymentEventFromJS(value js.Value) *CanMakePaymentEvent
CanMakePaymentEventFromJS is casting a js.Value into CanMakePaymentEvent.
func CanMakePaymentEventFromWrapper ¶
func CanMakePaymentEventFromWrapper(input core.Wrapper) *CanMakePaymentEvent
CanMakePaymentEventFromJS is casting from something that holds a js.Value into CanMakePaymentEvent.
func NewCanMakePaymentEvent ¶
func NewCanMakePaymentEvent(_type string, eventInitDict *CanMakePaymentEventInit) (_result *CanMakePaymentEvent)
func (*CanMakePaymentEvent) MethodData ¶
func (_this *CanMakePaymentEvent) MethodData() *javascript.FrozenArray
MethodData returning attribute 'methodData' with type javascript.FrozenArray (idl: FrozenArray).
func (*CanMakePaymentEvent) PaymentRequestOrigin ¶
func (_this *CanMakePaymentEvent) PaymentRequestOrigin() string
PaymentRequestOrigin returning attribute 'paymentRequestOrigin' with type string (idl: USVString).
func (*CanMakePaymentEvent) RespondWith ¶
func (_this *CanMakePaymentEvent) RespondWith(canMakePaymentResponse *javascript.PromiseBool)
func (*CanMakePaymentEvent) TopOrigin ¶
func (_this *CanMakePaymentEvent) TopOrigin() string
TopOrigin returning attribute 'topOrigin' with type string (idl: USVString).
type CanMakePaymentEventInit ¶
type CanMakePaymentEventInit struct { Bubbles bool Cancelable bool Composed bool TopOrigin string PaymentRequestOrigin string MethodData []*request.PaymentMethodData }
dictionary: CanMakePaymentEventInit
func CanMakePaymentEventInitFromJS ¶
func CanMakePaymentEventInitFromJS(value js.Value) *CanMakePaymentEventInit
CanMakePaymentEventInitFromJS is allocating a new CanMakePaymentEventInit object and copy all values in the value javascript object.
func (*CanMakePaymentEventInit) JSValue ¶
func (_this *CanMakePaymentEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type ImageObject ¶
dictionary: ImageObject
func ImageObjectFromJS ¶
func ImageObjectFromJS(value js.Value) *ImageObject
ImageObjectFromJS is allocating a new ImageObject object and copy all values in the value javascript object.
func (*ImageObject) JSValue ¶
func (_this *ImageObject) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type PaymentHandlerResponse ¶
type PaymentHandlerResponse struct { MethodName string Details *javascript.Object }
dictionary: PaymentHandlerResponse
func PaymentHandlerResponseFromJS ¶
func PaymentHandlerResponseFromJS(value js.Value) *PaymentHandlerResponse
PaymentHandlerResponseFromJS is allocating a new PaymentHandlerResponse object and copy all values in the value javascript object.
func (*PaymentHandlerResponse) JSValue ¶
func (_this *PaymentHandlerResponse) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type PaymentInstrument ¶
type PaymentInstrument struct { Name string Icons []*ImageObject Method string Capabilities *javascript.Object }
dictionary: PaymentInstrument
func PaymentInstrumentFromJS ¶
func PaymentInstrumentFromJS(value js.Value) *PaymentInstrument
PaymentInstrumentFromJS is allocating a new PaymentInstrument object and copy all values in the value javascript object.
func (*PaymentInstrument) JSValue ¶
func (_this *PaymentInstrument) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type PaymentInstruments ¶
type PaymentInstruments struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: PaymentInstruments
func PaymentInstrumentsFromJS ¶
func PaymentInstrumentsFromJS(value js.Value) *PaymentInstruments
PaymentInstrumentsFromJS is casting a js.Value into PaymentInstruments.
func PaymentInstrumentsFromWrapper ¶
func PaymentInstrumentsFromWrapper(input core.Wrapper) *PaymentInstruments
PaymentInstrumentsFromJS is casting from something that holds a js.Value into PaymentInstruments.
func (*PaymentInstruments) Clear ¶
func (_this *PaymentInstruments) Clear() (_result *javascript.PromiseVoid)
func (*PaymentInstruments) Delete ¶
func (_this *PaymentInstruments) Delete(instrumentKey string) (_result *javascript.PromiseBool)
func (*PaymentInstruments) Get ¶
func (_this *PaymentInstruments) Get(instrumentKey string) (_result *javascript.Promise)
func (*PaymentInstruments) Has ¶
func (_this *PaymentInstruments) Has(instrumentKey string) (_result *javascript.PromiseBool)
func (*PaymentInstruments) JSValue ¶
func (_this *PaymentInstruments) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PaymentInstruments) Keys ¶
func (_this *PaymentInstruments) Keys() (_result *javascript.PromiseSequenceString)
func (*PaymentInstruments) Set ¶
func (_this *PaymentInstruments) Set(instrumentKey string, details *PaymentInstrument) (_result *javascript.PromiseVoid)
type PaymentManager ¶
type PaymentManager struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: PaymentManager
func PaymentManagerFromJS ¶
func PaymentManagerFromJS(value js.Value) *PaymentManager
PaymentManagerFromJS is casting a js.Value into PaymentManager.
func PaymentManagerFromWrapper ¶
func PaymentManagerFromWrapper(input core.Wrapper) *PaymentManager
PaymentManagerFromJS is casting from something that holds a js.Value into PaymentManager.
func (*PaymentManager) Instruments ¶
func (_this *PaymentManager) Instruments() *PaymentInstruments
Instruments returning attribute 'instruments' with type PaymentInstruments (idl: PaymentInstruments).
func (*PaymentManager) JSValue ¶
func (_this *PaymentManager) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PaymentManager) SetUserHint ¶
func (_this *PaymentManager) SetUserHint(value string)
SetUserHint setting attribute 'userHint' with type string (idl: DOMString).
func (*PaymentManager) UserHint ¶
func (_this *PaymentManager) UserHint() string
UserHint returning attribute 'userHint' with type string (idl: DOMString).
type PaymentMethodChangeResponse ¶
type PaymentMethodChangeResponse struct { Error string Total *request.PaymentCurrencyAmount Modifiers *javascript.FrozenArray PaymentMethodErrors *javascript.Object }
dictionary: PaymentMethodChangeResponse
func PaymentMethodChangeResponseFromJS ¶
func PaymentMethodChangeResponseFromJS(value js.Value) *PaymentMethodChangeResponse
PaymentMethodChangeResponseFromJS is allocating a new PaymentMethodChangeResponse object and copy all values in the value javascript object.
func (*PaymentMethodChangeResponse) JSValue ¶
func (_this *PaymentMethodChangeResponse) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type PaymentRequestEvent ¶
type PaymentRequestEvent struct {
domcore.ExtendableEvent
}
class: PaymentRequestEvent
func NewPaymentRequestEvent ¶
func NewPaymentRequestEvent(_type string, eventInitDict *PaymentRequestEventInit) (_result *PaymentRequestEvent)
func PaymentRequestEventFromJS ¶
func PaymentRequestEventFromJS(value js.Value) *PaymentRequestEvent
PaymentRequestEventFromJS is casting a js.Value into PaymentRequestEvent.
func PaymentRequestEventFromWrapper ¶
func PaymentRequestEventFromWrapper(input core.Wrapper) *PaymentRequestEvent
PaymentRequestEventFromJS is casting from something that holds a js.Value into PaymentRequestEvent.
func (*PaymentRequestEvent) ChangePaymentMethod ¶
func (_this *PaymentRequestEvent) ChangePaymentMethod(methodName string, methodDetails *javascript.Object) (_result *PromiseNilPaymentMethodChangeResponse)
func (*PaymentRequestEvent) InstrumentKey ¶
func (_this *PaymentRequestEvent) InstrumentKey() string
InstrumentKey returning attribute 'instrumentKey' with type string (idl: DOMString).
func (*PaymentRequestEvent) MethodData ¶
func (_this *PaymentRequestEvent) MethodData() *javascript.FrozenArray
MethodData returning attribute 'methodData' with type javascript.FrozenArray (idl: FrozenArray).
func (*PaymentRequestEvent) Modifiers ¶
func (_this *PaymentRequestEvent) Modifiers() *javascript.FrozenArray
Modifiers returning attribute 'modifiers' with type javascript.FrozenArray (idl: FrozenArray).
func (*PaymentRequestEvent) OpenWindow ¶
func (_this *PaymentRequestEvent) OpenWindow(url string) (_result *client.PromiseNilWindowClient)
func (*PaymentRequestEvent) PaymentRequestId ¶
func (_this *PaymentRequestEvent) PaymentRequestId() string
PaymentRequestId returning attribute 'paymentRequestId' with type string (idl: DOMString).
func (*PaymentRequestEvent) PaymentRequestOrigin ¶
func (_this *PaymentRequestEvent) PaymentRequestOrigin() string
PaymentRequestOrigin returning attribute 'paymentRequestOrigin' with type string (idl: USVString).
func (*PaymentRequestEvent) RequestBillingAddress ¶
func (_this *PaymentRequestEvent) RequestBillingAddress() bool
RequestBillingAddress returning attribute 'requestBillingAddress' with type bool (idl: boolean).
func (*PaymentRequestEvent) RespondWith ¶
func (_this *PaymentRequestEvent) RespondWith(handlerResponsePromise *PromisePaymentHandlerResponse)
func (*PaymentRequestEvent) TopOrigin ¶
func (_this *PaymentRequestEvent) TopOrigin() string
TopOrigin returning attribute 'topOrigin' with type string (idl: USVString).
func (*PaymentRequestEvent) Total ¶
func (_this *PaymentRequestEvent) Total() *javascript.Object
Total returning attribute 'total' with type javascript.Object (idl: object).
type PaymentRequestEventInit ¶
type PaymentRequestEventInit struct { Bubbles bool Cancelable bool Composed bool TopOrigin string PaymentRequestOrigin string PaymentRequestId string MethodData []*request.PaymentMethodData Total *request.PaymentCurrencyAmount Modifiers []*request.PaymentDetailsModifier InstrumentKey string }
dictionary: PaymentRequestEventInit
func PaymentRequestEventInitFromJS ¶
func PaymentRequestEventInitFromJS(value js.Value) *PaymentRequestEventInit
PaymentRequestEventInitFromJS is allocating a new PaymentRequestEventInit object and copy all values in the value javascript object.
func (*PaymentRequestEventInit) JSValue ¶
func (_this *PaymentRequestEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type PromiseNilPaymentMethodChangeResponse ¶
type PromiseNilPaymentMethodChangeResponse struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseNilPaymentMethodChangeResponseFromJS ¶
func PromiseNilPaymentMethodChangeResponseFromJS(value js.Value) *PromiseNilPaymentMethodChangeResponse
PromiseNilPaymentMethodChangeResponseFromJS is casting a js.Value into PromiseNilPaymentMethodChangeResponse.
func PromiseNilPaymentMethodChangeResponseFromWrapper ¶
func PromiseNilPaymentMethodChangeResponseFromWrapper(input core.Wrapper) *PromiseNilPaymentMethodChangeResponse
PromiseNilPaymentMethodChangeResponseFromJS is casting from something that holds a js.Value into PromiseNilPaymentMethodChangeResponse.
func (*PromiseNilPaymentMethodChangeResponse) Catch ¶
func (_this *PromiseNilPaymentMethodChangeResponse) Catch(onRejected *PromiseNilPaymentMethodChangeResponseOnRejected) (_result *PromiseNilPaymentMethodChangeResponse)
func (*PromiseNilPaymentMethodChangeResponse) Finally ¶
func (_this *PromiseNilPaymentMethodChangeResponse) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseNilPaymentMethodChangeResponse)
func (*PromiseNilPaymentMethodChangeResponse) JSValue ¶
func (_this *PromiseNilPaymentMethodChangeResponse) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromiseNilPaymentMethodChangeResponse) Then ¶
func (_this *PromiseNilPaymentMethodChangeResponse) Then(onFulfilled *PromiseNilPaymentMethodChangeResponseOnFulfilled, onRejected *PromiseNilPaymentMethodChangeResponseOnRejected) (_result *PromiseNilPaymentMethodChangeResponse)
type PromiseNilPaymentMethodChangeResponseOnFulfilled ¶
PromiseNilPaymentMethodChangeResponseOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseNilPaymentMethodChangeResponseOnFulfilledToJS ¶
func PromiseNilPaymentMethodChangeResponseOnFulfilledToJS(callback PromiseNilPaymentMethodChangeResponseOnFulfilledFunc) *PromiseNilPaymentMethodChangeResponseOnFulfilled
type PromiseNilPaymentMethodChangeResponseOnFulfilledFunc ¶
type PromiseNilPaymentMethodChangeResponseOnFulfilledFunc func(value *PaymentMethodChangeResponse)
callback: PromiseTemplateOnFulfilled
func PromiseNilPaymentMethodChangeResponseOnFulfilledFromJS ¶
func PromiseNilPaymentMethodChangeResponseOnFulfilledFromJS(_value js.Value) PromiseNilPaymentMethodChangeResponseOnFulfilledFunc
type PromiseNilPaymentMethodChangeResponseOnRejected ¶
PromiseNilPaymentMethodChangeResponseOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseNilPaymentMethodChangeResponseOnRejectedToJS ¶
func PromiseNilPaymentMethodChangeResponseOnRejectedToJS(callback PromiseNilPaymentMethodChangeResponseOnRejectedFunc) *PromiseNilPaymentMethodChangeResponseOnRejected
type PromiseNilPaymentMethodChangeResponseOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseNilPaymentMethodChangeResponseOnRejectedFromJS ¶
func PromiseNilPaymentMethodChangeResponseOnRejectedFromJS(_value js.Value) PromiseNilPaymentMethodChangeResponseOnRejectedFunc
type PromisePaymentHandlerResponse ¶
type PromisePaymentHandlerResponse struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromisePaymentHandlerResponseFromJS ¶
func PromisePaymentHandlerResponseFromJS(value js.Value) *PromisePaymentHandlerResponse
PromisePaymentHandlerResponseFromJS is casting a js.Value into PromisePaymentHandlerResponse.
func PromisePaymentHandlerResponseFromWrapper ¶
func PromisePaymentHandlerResponseFromWrapper(input core.Wrapper) *PromisePaymentHandlerResponse
PromisePaymentHandlerResponseFromJS is casting from something that holds a js.Value into PromisePaymentHandlerResponse.
func (*PromisePaymentHandlerResponse) Catch ¶
func (_this *PromisePaymentHandlerResponse) Catch(onRejected *PromisePaymentHandlerResponseOnRejected) (_result *PromisePaymentHandlerResponse)
func (*PromisePaymentHandlerResponse) Finally ¶
func (_this *PromisePaymentHandlerResponse) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePaymentHandlerResponse)
func (*PromisePaymentHandlerResponse) JSValue ¶
func (_this *PromisePaymentHandlerResponse) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromisePaymentHandlerResponse) Then ¶
func (_this *PromisePaymentHandlerResponse) Then(onFulfilled *PromisePaymentHandlerResponseOnFulfilled, onRejected *PromisePaymentHandlerResponseOnRejected) (_result *PromisePaymentHandlerResponse)
type PromisePaymentHandlerResponseOnFulfilled ¶
PromisePaymentHandlerResponseOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromisePaymentHandlerResponseOnFulfilledToJS ¶
func PromisePaymentHandlerResponseOnFulfilledToJS(callback PromisePaymentHandlerResponseOnFulfilledFunc) *PromisePaymentHandlerResponseOnFulfilled
type PromisePaymentHandlerResponseOnFulfilledFunc ¶
type PromisePaymentHandlerResponseOnFulfilledFunc func(value *PaymentHandlerResponse)
callback: PromiseTemplateOnFulfilled
func PromisePaymentHandlerResponseOnFulfilledFromJS ¶
func PromisePaymentHandlerResponseOnFulfilledFromJS(_value js.Value) PromisePaymentHandlerResponseOnFulfilledFunc
type PromisePaymentHandlerResponseOnRejected ¶
PromisePaymentHandlerResponseOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromisePaymentHandlerResponseOnRejectedToJS ¶
func PromisePaymentHandlerResponseOnRejectedToJS(callback PromisePaymentHandlerResponseOnRejectedFunc) *PromisePaymentHandlerResponseOnRejected
type PromisePaymentHandlerResponseOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromisePaymentHandlerResponseOnRejectedFromJS ¶
func PromisePaymentHandlerResponseOnRejectedFromJS(_value js.Value) PromisePaymentHandlerResponseOnRejectedFunc
Directories ¶
Path | Synopsis |
---|---|
Package basiccard describes data structures and formats, and a simple processing model, to facilitate card-based payments on the Web.
|
Package basiccard describes data structures and formats, and a simple processing model, to facilitate card-based payments on the Web. |
Package request allow merchants (like web sites selling physical or digital goods) to utilize one or more payment methods with minimal integration.
|
Package request allow merchants (like web sites selling physical or digital goods) to utilize one or more payment methods with minimal integration. |