API Docs for: 1.0.2
Show:

KlarnaOnDemand.OriginProof Class

Generates an origin proof that can be used to verify the details of a purchase.

Constructor

KlarnaOnDemand.OriginProof

(
  • amount
  • currency
  • userToken
)

Parameters:

  • amount Int

    The purchase's total amount in "cents".

  • currency String

    The currency used in this purchase (“SEK”, “EUR”, or other ISO 4217 codes).

  • userToken String

    Token identifying the user making the purchase.

Item Index

Methods

Methods

toString

()

Returns a textual representation of the origin proof that needs to be sent along with the purchase for it to succeed.

Returns:

A textual representation of the origin proof that needs to be sent along with the purchase for it to succeed.