Bixby Developer Center

Guides
References

sps

optional

Enables a built-in integration of Samsung Payment Services (SPS) that can be used in your capsule, so that users can pay for purchases.

If an SPS payment is done through a local endpoint, you need to invoke payment by calling http.invokeSPSPayment in the JavaScript file. Specifically, you need to pass headers and body like below:

var options = {}
options.headers = {"Content-Type" : "application/json", "User" : "blah"}
options.body = "\"{ \"product_id\": \"916598\", \"card_number\": \"{{credit_card_number}}\" }\"";
var wev = http.invokeSPSPayment(options)

If a SPS payment is done through a remote endpoint, the remote endpoint is called through Spreedly as the merchant API, with the headers and body specified in the action endpoint, like in th example below:

remote-endpoint (https://transfer-money-to-acount.com) {
headers {
header (some-merchant-api-header:some-header-value)
}
body {
template ("{ \"product_id\": \"916598\", \"card_number\": \"{{credit_card_number}}\" }\"")
}
method (POST)
}

Child Keys

merchant-name
required
The name of the merchant
payment
required
Defines payment information from the user
http-delivery
optional
Defines gateway information for SPS HTTP delivery