payment

package
v0.0.0-...-41cedfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 6 Imported by: 2

Documentation

Overview

Package payment enable Web applications to handle requests for payment.

Index

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

type ImageObject struct {
	Src   string
	Sizes string
	Type  string
}

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 (*PromiseNilPaymentMethodChangeResponse) Finally

func (*PromiseNilPaymentMethodChangeResponse) JSValue

JSValue returns the js.Value or js.Null() if _this is nil

type PromiseNilPaymentMethodChangeResponseOnFulfilled

type PromiseNilPaymentMethodChangeResponseOnFulfilled js.Func

PromiseNilPaymentMethodChangeResponseOnFulfilled is a javascript function type.

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

type PromiseNilPaymentMethodChangeResponseOnFulfilledFunc

type PromiseNilPaymentMethodChangeResponseOnFulfilledFunc func(value *PaymentMethodChangeResponse)

callback: PromiseTemplateOnFulfilled

func PromiseNilPaymentMethodChangeResponseOnFulfilledFromJS

func PromiseNilPaymentMethodChangeResponseOnFulfilledFromJS(_value js.Value) PromiseNilPaymentMethodChangeResponseOnFulfilledFunc

type PromiseNilPaymentMethodChangeResponseOnRejected

type PromiseNilPaymentMethodChangeResponseOnRejected js.Func

PromiseNilPaymentMethodChangeResponseOnRejected is a javascript function type.

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

type PromiseNilPaymentMethodChangeResponseOnRejectedFunc

type PromiseNilPaymentMethodChangeResponseOnRejectedFunc func(reason js.Value)

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 (*PromisePaymentHandlerResponse) Finally

func (*PromisePaymentHandlerResponse) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromisePaymentHandlerResponse) Then

type PromisePaymentHandlerResponseOnFulfilled

type PromisePaymentHandlerResponseOnFulfilled js.Func

PromisePaymentHandlerResponseOnFulfilled is a javascript function type.

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

type PromisePaymentHandlerResponseOnFulfilledFunc

type PromisePaymentHandlerResponseOnFulfilledFunc func(value *PaymentHandlerResponse)

callback: PromiseTemplateOnFulfilled

func PromisePaymentHandlerResponseOnFulfilledFromJS

func PromisePaymentHandlerResponseOnFulfilledFromJS(_value js.Value) PromisePaymentHandlerResponseOnFulfilledFunc

type PromisePaymentHandlerResponseOnRejected

type PromisePaymentHandlerResponseOnRejected js.Func

PromisePaymentHandlerResponseOnRejected is a javascript function type.

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

type PromisePaymentHandlerResponseOnRejectedFunc

type PromisePaymentHandlerResponseOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromisePaymentHandlerResponseOnRejectedFromJS

func PromisePaymentHandlerResponseOnRejectedFromJS(_value js.Value) PromisePaymentHandlerResponseOnRejectedFunc

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL