basiccard

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: 2 Imported by: 0

Documentation

Overview

Package basiccard describes data structures and formats, and a simple processing model, to facilitate card-based payments on the Web.

Index

Constants

View Source
const Name = "basic-card"

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicCardChangeDetails

type BasicCardChangeDetails struct {
	BillingAddress *request.PaymentAddress
}

dictionary: BasicCardChangeDetails

func BasicCardChangeDetailsFromJS

func BasicCardChangeDetailsFromJS(value js.Value) *BasicCardChangeDetails

BasicCardChangeDetailsFromJS is allocating a new BasicCardChangeDetails object and copy all values in the value javascript object.

func (*BasicCardChangeDetails) JSValue

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

JSValue is allocating a new javascript object and copy all values

type BasicCardErrors

type BasicCardErrors struct {
	CardNumber       string
	CardholderName   string
	CardSecurityCode string
	ExpiryMonth      string
	ExpiryYear       string
	BillingAddress   *request.AddressErrors
}

dictionary: BasicCardErrors

func BasicCardErrorsFromJS

func BasicCardErrorsFromJS(value js.Value) *BasicCardErrors

BasicCardErrorsFromJS is allocating a new BasicCardErrors object and copy all values in the value javascript object.

func (*BasicCardErrors) JSValue

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

JSValue is allocating a new javascript object and copy all values

type BasicCardRequest

type BasicCardRequest struct {
	SupportedNetworks []string
}

dictionary: BasicCardRequest

func BasicCardRequestFromJS

func BasicCardRequestFromJS(value js.Value) *BasicCardRequest

BasicCardRequestFromJS is allocating a new BasicCardRequest object and copy all values in the value javascript object.

func (*BasicCardRequest) JSValue

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

JSValue is allocating a new javascript object and copy all values

type BasicCardResponse

type BasicCardResponse struct {
	CardNumber       string
	CardholderName   string
	CardSecurityCode string
	ExpiryMonth      string
	ExpiryYear       string
	BillingAddress   *request.PaymentAddress
}

dictionary: BasicCardResponse

func BasicCardResponseFromJS

func BasicCardResponseFromJS(value js.Value) *BasicCardResponse

BasicCardResponseFromJS is allocating a new BasicCardResponse object and copy all values in the value javascript object.

func (*BasicCardResponse) JSValue

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

JSValue is allocating a new javascript object and copy all values

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

Jump to

Keyboard shortcuts

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