webapi: github.com/gowebapi/webapi/payment Index | Files | Directories

package payment

import "github.com/gowebapi/webapi/payment"

Package payment enable Web applications to handle requests for payment.

Index

Package Files

doc.go payment.go

type CanMakePaymentEvent Uses

type CanMakePaymentEvent struct {
    domcore.ExtendableEvent
}

class: CanMakePaymentEvent

func CanMakePaymentEventFromJS Uses

func CanMakePaymentEventFromJS(value js.Wrapper) *CanMakePaymentEvent

CanMakePaymentEventFromJS is casting a js.Wrapper into CanMakePaymentEvent.

func NewCanMakePaymentEvent Uses

func NewCanMakePaymentEvent(_type string, eventInitDict *CanMakePaymentEventInit) (_result *CanMakePaymentEvent)

func (*CanMakePaymentEvent) MethodData Uses

func (_this *CanMakePaymentEvent) MethodData() *javascript.FrozenArray

MethodData returning attribute 'methodData' with type javascript.FrozenArray (idl: FrozenArray).

func (*CanMakePaymentEvent) PaymentRequestOrigin Uses

func (_this *CanMakePaymentEvent) PaymentRequestOrigin() string

PaymentRequestOrigin returning attribute 'paymentRequestOrigin' with type string (idl: USVString).

func (*CanMakePaymentEvent) RespondWith Uses

func (_this *CanMakePaymentEvent) RespondWith(canMakePaymentResponse *javascript.PromiseBool)

func (*CanMakePaymentEvent) TopOrigin Uses

func (_this *CanMakePaymentEvent) TopOrigin() string

TopOrigin returning attribute 'topOrigin' with type string (idl: USVString).

type CanMakePaymentEventInit Uses

type CanMakePaymentEventInit struct {
    Bubbles              bool
    Cancelable           bool
    Composed             bool
    TopOrigin            string
    PaymentRequestOrigin string
    MethodData           []*request.PaymentMethodData
}

dictionary: CanMakePaymentEventInit

func CanMakePaymentEventInitFromJS Uses

func CanMakePaymentEventInitFromJS(value js.Wrapper) *CanMakePaymentEventInit

CanMakePaymentEventInitFromJS is allocating a new CanMakePaymentEventInit object and copy all values from input javascript object

func (*CanMakePaymentEventInit) JSValue Uses

func (_this *CanMakePaymentEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type ImageObject Uses

type ImageObject struct {
    Src   string
    Sizes string
    Type  string
}

dictionary: ImageObject

func ImageObjectFromJS Uses

func ImageObjectFromJS(value js.Wrapper) *ImageObject

ImageObjectFromJS is allocating a new ImageObject object and copy all values from input javascript object

func (*ImageObject) JSValue Uses

func (_this *ImageObject) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PaymentHandlerResponse Uses

type PaymentHandlerResponse struct {
    MethodName string
    Details    *javascript.Object
}

dictionary: PaymentHandlerResponse

func PaymentHandlerResponseFromJS Uses

func PaymentHandlerResponseFromJS(value js.Wrapper) *PaymentHandlerResponse

PaymentHandlerResponseFromJS is allocating a new PaymentHandlerResponse object and copy all values from input javascript object

func (*PaymentHandlerResponse) JSValue Uses

func (_this *PaymentHandlerResponse) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PaymentInstrument Uses

type PaymentInstrument struct {
    Name         string
    Icons        []*ImageObject
    Method       string
    Capabilities *javascript.Object
}

dictionary: PaymentInstrument

func PaymentInstrumentFromJS Uses

func PaymentInstrumentFromJS(value js.Wrapper) *PaymentInstrument

PaymentInstrumentFromJS is allocating a new PaymentInstrument object and copy all values from input javascript object

func (*PaymentInstrument) JSValue Uses

func (_this *PaymentInstrument) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PaymentInstruments Uses

type PaymentInstruments struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: PaymentInstruments

func PaymentInstrumentsFromJS Uses

func PaymentInstrumentsFromJS(value js.Wrapper) *PaymentInstruments

PaymentInstrumentsFromJS is casting a js.Wrapper into PaymentInstruments.

func (*PaymentInstruments) Clear Uses

func (_this *PaymentInstruments) Clear() (_result *javascript.PromiseVoid)

func (*PaymentInstruments) Delete Uses

func (_this *PaymentInstruments) Delete(instrumentKey string) (_result *javascript.PromiseBool)

func (*PaymentInstruments) Get Uses

func (_this *PaymentInstruments) Get(instrumentKey string) (_result *javascript.Promise)

func (*PaymentInstruments) Has Uses

func (_this *PaymentInstruments) Has(instrumentKey string) (_result *javascript.PromiseBool)

func (*PaymentInstruments) JSValue Uses

func (_this *PaymentInstruments) JSValue() js.Value

func (*PaymentInstruments) Keys Uses

func (_this *PaymentInstruments) Keys() (_result *javascript.PromiseSequenceString)

func (*PaymentInstruments) Set Uses

func (_this *PaymentInstruments) Set(instrumentKey string, details *PaymentInstrument) (_result *javascript.PromiseVoid)

type PaymentManager Uses

type PaymentManager struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: PaymentManager

func PaymentManagerFromJS Uses

func PaymentManagerFromJS(value js.Wrapper) *PaymentManager

PaymentManagerFromJS is casting a js.Wrapper into PaymentManager.

func (*PaymentManager) Instruments Uses

func (_this *PaymentManager) Instruments() *PaymentInstruments

Instruments returning attribute 'instruments' with type PaymentInstruments (idl: PaymentInstruments).

func (*PaymentManager) JSValue Uses

func (_this *PaymentManager) JSValue() js.Value

func (*PaymentManager) SetUserHint Uses

func (_this *PaymentManager) SetUserHint(value string)

SetUserHint setting attribute 'userHint' with type string (idl: DOMString).

func (*PaymentManager) UserHint Uses

func (_this *PaymentManager) UserHint() string

UserHint returning attribute 'userHint' with type string (idl: DOMString).

type PaymentMethodChangeResponse Uses

type PaymentMethodChangeResponse struct {
    Error               string
    Total               *request.PaymentCurrencyAmount
    Modifiers           *javascript.FrozenArray
    PaymentMethodErrors *javascript.Object
}

dictionary: PaymentMethodChangeResponse

func PaymentMethodChangeResponseFromJS Uses

func PaymentMethodChangeResponseFromJS(value js.Wrapper) *PaymentMethodChangeResponse

PaymentMethodChangeResponseFromJS is allocating a new PaymentMethodChangeResponse object and copy all values from input javascript object

func (*PaymentMethodChangeResponse) JSValue Uses

func (_this *PaymentMethodChangeResponse) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PaymentRequestEvent Uses

type PaymentRequestEvent struct {
    domcore.ExtendableEvent
}

class: PaymentRequestEvent

func NewPaymentRequestEvent Uses

func NewPaymentRequestEvent(_type string, eventInitDict *PaymentRequestEventInit) (_result *PaymentRequestEvent)

func PaymentRequestEventFromJS Uses

func PaymentRequestEventFromJS(value js.Wrapper) *PaymentRequestEvent

PaymentRequestEventFromJS is casting a js.Wrapper into PaymentRequestEvent.

func (*PaymentRequestEvent) ChangePaymentMethod Uses

func (_this *PaymentRequestEvent) ChangePaymentMethod(methodName string, methodDetails *javascript.Object) (_result *PromiseNilPaymentMethodChangeResponse)

func (*PaymentRequestEvent) InstrumentKey Uses

func (_this *PaymentRequestEvent) InstrumentKey() string

InstrumentKey returning attribute 'instrumentKey' with type string (idl: DOMString).

func (*PaymentRequestEvent) MethodData Uses

func (_this *PaymentRequestEvent) MethodData() *javascript.FrozenArray

MethodData returning attribute 'methodData' with type javascript.FrozenArray (idl: FrozenArray).

func (*PaymentRequestEvent) Modifiers Uses

func (_this *PaymentRequestEvent) Modifiers() *javascript.FrozenArray

Modifiers returning attribute 'modifiers' with type javascript.FrozenArray (idl: FrozenArray).

func (*PaymentRequestEvent) OpenWindow Uses

func (_this *PaymentRequestEvent) OpenWindow(url string) (_result *client.PromiseNilWindowClient)

func (*PaymentRequestEvent) PaymentRequestId Uses

func (_this *PaymentRequestEvent) PaymentRequestId() string

PaymentRequestId returning attribute 'paymentRequestId' with type string (idl: DOMString).

func (*PaymentRequestEvent) PaymentRequestOrigin Uses

func (_this *PaymentRequestEvent) PaymentRequestOrigin() string

PaymentRequestOrigin returning attribute 'paymentRequestOrigin' with type string (idl: USVString).

func (*PaymentRequestEvent) RequestBillingAddress Uses

func (_this *PaymentRequestEvent) RequestBillingAddress() bool

RequestBillingAddress returning attribute 'requestBillingAddress' with type bool (idl: boolean).

func (*PaymentRequestEvent) RespondWith Uses

func (_this *PaymentRequestEvent) RespondWith(handlerResponsePromise *PromisePaymentHandlerResponse)

func (*PaymentRequestEvent) TopOrigin Uses

func (_this *PaymentRequestEvent) TopOrigin() string

TopOrigin returning attribute 'topOrigin' with type string (idl: USVString).

func (*PaymentRequestEvent) Total Uses

func (_this *PaymentRequestEvent) Total() *javascript.Object

Total returning attribute 'total' with type javascript.Object (idl: object).

type PaymentRequestEventInit Uses

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 Uses

func PaymentRequestEventInitFromJS(value js.Wrapper) *PaymentRequestEventInit

PaymentRequestEventInitFromJS is allocating a new PaymentRequestEventInit object and copy all values from input javascript object

func (*PaymentRequestEventInit) JSValue Uses

func (_this *PaymentRequestEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PromiseNilPaymentMethodChangeResponse Uses

type PromiseNilPaymentMethodChangeResponse struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseNilPaymentMethodChangeResponseFromJS Uses

func PromiseNilPaymentMethodChangeResponseFromJS(value js.Wrapper) *PromiseNilPaymentMethodChangeResponse

PromiseNilPaymentMethodChangeResponseFromJS is casting a js.Wrapper into PromiseNilPaymentMethodChangeResponse.

func (*PromiseNilPaymentMethodChangeResponse) Catch Uses

func (_this *PromiseNilPaymentMethodChangeResponse) Catch(onRejected *PromiseNilPaymentMethodChangeResponseOnRejected) (_result *PromiseNilPaymentMethodChangeResponse)

func (*PromiseNilPaymentMethodChangeResponse) Finally Uses

func (_this *PromiseNilPaymentMethodChangeResponse) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseNilPaymentMethodChangeResponse)

func (*PromiseNilPaymentMethodChangeResponse) JSValue Uses

func (_this *PromiseNilPaymentMethodChangeResponse) JSValue() js.Value

func (*PromiseNilPaymentMethodChangeResponse) Then Uses

func (_this *PromiseNilPaymentMethodChangeResponse) Then(onFulfilled *PromiseNilPaymentMethodChangeResponseOnFulfilled, onRejected *PromiseNilPaymentMethodChangeResponseOnRejected) (_result *PromiseNilPaymentMethodChangeResponse)

type PromiseNilPaymentMethodChangeResponseOnFulfilled Uses

type PromiseNilPaymentMethodChangeResponseOnFulfilled js.Func

PromiseNilPaymentMethodChangeResponseOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseNilPaymentMethodChangeResponseOnFulfilledToJS Uses

func PromiseNilPaymentMethodChangeResponseOnFulfilledToJS(callback PromiseNilPaymentMethodChangeResponseOnFulfilledFunc) *PromiseNilPaymentMethodChangeResponseOnFulfilled

type PromiseNilPaymentMethodChangeResponseOnFulfilledFunc Uses

type PromiseNilPaymentMethodChangeResponseOnFulfilledFunc func(value *PaymentMethodChangeResponse)

callback: PromiseTemplateOnFulfilled

func PromiseNilPaymentMethodChangeResponseOnFulfilledFromJS Uses

func PromiseNilPaymentMethodChangeResponseOnFulfilledFromJS(_value js.Value) PromiseNilPaymentMethodChangeResponseOnFulfilledFunc

type PromiseNilPaymentMethodChangeResponseOnRejected Uses

type PromiseNilPaymentMethodChangeResponseOnRejected js.Func

PromiseNilPaymentMethodChangeResponseOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseNilPaymentMethodChangeResponseOnRejectedToJS Uses

func PromiseNilPaymentMethodChangeResponseOnRejectedToJS(callback PromiseNilPaymentMethodChangeResponseOnRejectedFunc) *PromiseNilPaymentMethodChangeResponseOnRejected

type PromiseNilPaymentMethodChangeResponseOnRejectedFunc Uses

type PromiseNilPaymentMethodChangeResponseOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseNilPaymentMethodChangeResponseOnRejectedFromJS Uses

func PromiseNilPaymentMethodChangeResponseOnRejectedFromJS(_value js.Value) PromiseNilPaymentMethodChangeResponseOnRejectedFunc

type PromisePaymentHandlerResponse Uses

type PromisePaymentHandlerResponse struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromisePaymentHandlerResponseFromJS Uses

func PromisePaymentHandlerResponseFromJS(value js.Wrapper) *PromisePaymentHandlerResponse

PromisePaymentHandlerResponseFromJS is casting a js.Wrapper into PromisePaymentHandlerResponse.

func (*PromisePaymentHandlerResponse) Catch Uses

func (_this *PromisePaymentHandlerResponse) Catch(onRejected *PromisePaymentHandlerResponseOnRejected) (_result *PromisePaymentHandlerResponse)

func (*PromisePaymentHandlerResponse) Finally Uses

func (_this *PromisePaymentHandlerResponse) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePaymentHandlerResponse)

func (*PromisePaymentHandlerResponse) JSValue Uses

func (_this *PromisePaymentHandlerResponse) JSValue() js.Value

func (*PromisePaymentHandlerResponse) Then Uses

func (_this *PromisePaymentHandlerResponse) Then(onFulfilled *PromisePaymentHandlerResponseOnFulfilled, onRejected *PromisePaymentHandlerResponseOnRejected) (_result *PromisePaymentHandlerResponse)

type PromisePaymentHandlerResponseOnFulfilled Uses

type PromisePaymentHandlerResponseOnFulfilled js.Func

PromisePaymentHandlerResponseOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromisePaymentHandlerResponseOnFulfilledToJS Uses

func PromisePaymentHandlerResponseOnFulfilledToJS(callback PromisePaymentHandlerResponseOnFulfilledFunc) *PromisePaymentHandlerResponseOnFulfilled

type PromisePaymentHandlerResponseOnFulfilledFunc Uses

type PromisePaymentHandlerResponseOnFulfilledFunc func(value *PaymentHandlerResponse)

callback: PromiseTemplateOnFulfilled

func PromisePaymentHandlerResponseOnFulfilledFromJS Uses

func PromisePaymentHandlerResponseOnFulfilledFromJS(_value js.Value) PromisePaymentHandlerResponseOnFulfilledFunc

type PromisePaymentHandlerResponseOnRejected Uses

type PromisePaymentHandlerResponseOnRejected js.Func

PromisePaymentHandlerResponseOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromisePaymentHandlerResponseOnRejectedToJS Uses

func PromisePaymentHandlerResponseOnRejectedToJS(callback PromisePaymentHandlerResponseOnRejectedFunc) *PromisePaymentHandlerResponseOnRejected

type PromisePaymentHandlerResponseOnRejectedFunc Uses

type PromisePaymentHandlerResponseOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromisePaymentHandlerResponseOnRejectedFromJS Uses

func PromisePaymentHandlerResponseOnRejectedFromJS(_value js.Value) PromisePaymentHandlerResponseOnRejectedFunc

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Directories

PathSynopsis
basiccardPackage basiccard describes data structures and formats, and a simple processing model, to facilitate card-based payments on the Web.
requestPackage request allow merchants (like web sites selling physical or digital goods) to utilize one or more payment methods with minimal integration.

Package payment imports 5 packages (graph) and is imported by 1 packages. Updated 2019-09-17. Refresh now. Tools for package owners.