Payment Methods
POST /api/v1/payment_methods/credit_card
Create the Credit Card Payment Methods
Creates a new Credit Card payment method record for the onboarding live application of the currently authenticated merchant.
betaThis API is a pre-release. Please contact KOMOJU to obtain more usage instructions before using it.
サンプル
- cURL
- Node.js
- Ruby
curl -X POST https://komoju.com/api/v1/live_application/payment_methods/credit_card \
-u sk_123456: \
-d "has_processed_cc_before=false" \
-d "conducts_door_to_door_sales=false" \
-d "conducts_telemarketing=false" \
-d "conducts_mlm_scheme=false" \
-d "conducts_business_opportunity_scheme=false" \
-d "violated_consumer_contract_act=false" \
-d "pci_compliance_proofs=7estyza4j4a5s1wdqhhe0r4f7"
var querystring = require('querystring');
var https = require('https');
var secret_key = 'sk_123456'
var auth = 'Basic ' + Buffer.from(secret_key + ':').toString('base64');
var post_data = querystring.stringify({
'has_processed_cc_before': 'false',
'conducts_door_to_door_sales': 'false',
'conducts_telemarketing': 'false',
'conducts_mlm_scheme': 'false',
'conducts_business_opportunity_scheme': 'false',
'violated_consumer_contract_act': 'false',
'pci_compliance_proofs': '7estyza4j4a5s1wdqhhe0r4f7'
});
var post_options = {
host: 'komoju.com',
port: '443',
path: '/api/v1/live_application/payment_methods/credit_card',
method: 'POST',
headers: {
'Authorization': auth,
'Content-Length': Buffer.byteLength(post_data)
}
};
var post_req = https.request(post_options, function(res) {
res.setEncoding('utf8');
res.on('data', function (chunk) {
console.log(chunk);
});
});
post_req.write(post_data);
post_req.end();
require 'uri'
require 'net/https'
require 'json'
require 'base64'
require 'pp'
uri = URI.parse('https://komoju.com/api/v1/live_application/payment_methods/credit_card')
https = Net::HTTP.new(uri.host, uri.port)
https.use_ssl = true
secret_key = 'sk_123456'
auth = Base64.encode64("#{secret_key}:")
headers = {
'Content-Type' => 'application/json',
'Authorization' => "Basic #{auth}"
}
body = {
has_processed_cc_before: "false",
conducts_door_to_door_sales: "false",
conducts_telemarketing: "false",
conducts_mlm_scheme: "false",
conducts_business_opportunity_scheme: "false",
violated_consumer_contract_act: "false",
pci_compliance_proofs: "7estyza4j4a5s1wdqhhe0r4f7"
}
res = https.post(
uri.path,
body.to_json,
headers
)
puts res.body
{
"has_processed_cc_before": false,
"conducts_door_to_door_sales": false,
"conducts_telemarketing": false,
"conducts_mlm_scheme": false,
"conducts_business_opportunity_scheme": false,
"violated_consumer_contract_act": false,
"pci_compliance_proofs": [
"7estyza4j4a5s1wdqhhe0r4f7"
]
}
パラメータ
名前 | 説明 |
---|---|
has_processed_cc_before 任意 |
Has your business processed credit card transactions before? |
conducts_door_to_door_sales 任意 |
Does your company operate Door-to-Door sales? |
conducts_telemarketing 任意 |
Does your company operate Telemarketing Sales? |
conducts_mlm_scheme 任意 |
Does your company operate Network Marketing? |
conducts_business_opportunity_scheme 任意 |
Does your company operate Business Opportunity (Biz-Opp)? |
violated_consumer_contract_act 任意 |
Has your business violated either the Specified Commercial Transaction Act (特定商取引法) in the past five years or the Consumer Contract Act (消費者契約法) and lost a lawsuit due to these violations in the past? |
pci_compliance_proofs 任意 |
An arrary of file ID. Please upload your PCI Compliance Proof via the File API. After uploading, please provide the ID of file returned by the File API. |
PATCH /api/v1/payment_methods/credit_card
Update the Credit Card Payment Methods
Update the Credit Card payment method record for the onboarding live application of the currently authenticated merchant.
betaThis API is a pre-release. Please contact KOMOJU to obtain more usage instructions before using it.
サンプル
- cURL
- Node.js
- Ruby
curl -X PATCH https://komoju.com/api/v1/live_application/payment_methods/credit_card \
-u sk_123456: \
-d "has_processed_cc_before=true"
var querystring = require('querystring');
var https = require('https');
var secret_key = 'sk_123456'
var auth = 'Basic ' + Buffer.from(secret_key + ':').toString('base64');
var patch_data = querystring.stringify({
'has_processed_cc_before': 'true'
});
var patch_options = {
host: 'komoju.com',
port: '443',
path: '/api/v1/live_application/payment_methods/credit_card',
method: 'PATCH',
headers: {
'Authorization': auth,
'Content-Length': Buffer.byteLength(patch_data)
}
};
var patch_req = https.request(patch_options, function(res) {
res.setEncoding('utf8');
res.on('data', function (chunk) {
console.log(chunk);
});
});
patch_req.write(patch_data);
patch_req.end();
require 'uri'
require 'net/https'
require 'json'
require 'base64'
require 'pp'
uri = URI.parse('https://komoju.com/api/v1/live_application/payment_methods/credit_card')
https = Net::HTTP.new(uri.host, uri.port)
https.use_ssl = true
secret_key = 'sk_123456'
auth = Base64.encode64("#{secret_key}:")
headers = {
'Content-Type' => 'application/json',
'Authorization' => "Basic #{auth}"
}
body = {
has_processed_cc_before: "true"
}
res = https.patch(
uri.path,
body.to_json,
headers
)
puts res.body
{
"has_processed_cc_before": true,
"conducts_door_to_door_sales": false,
"conducts_telemarketing": false,
"conducts_mlm_scheme": false,
"conducts_business_opportunity_scheme": false,
"violated_consumer_contract_act": false,
"pci_compliance_proofs": [
"7estyza4j4a5s1wdqhhe0r4f7"
]
}
パラメータ
名前 | 説明 |
---|---|
has_processed_cc_before 任意 |
Has your business processed credit card transactions before? |
conducts_door_to_door_sales 任意 |
Does your company operate Door-to-Door sales? |
conducts_telemarketing 任意 |
Does your company operate Telemarketing Sales? |
conducts_mlm_scheme 任意 |
Does your company operate Network Marketing? |
conducts_business_opportunity_scheme 任意 |
Does your company operate Business Opportunity (Biz-Opp)? |
violated_consumer_contract_act 任意 |
Has your business violated either the Specified Commercial Transaction Act (特定商取引法) in the past five years or the Consumer Contract Act (消費者契約法) and lost a lawsuit due to these violations in the past? |
pci_compliance_proofs 任意 |
An arrary of file ID. Please upload your PCI Compliance Proof via the File API. After uploading, please provide the ID of file returned by the File API. |
POST /api/v1/payment_methods/convenience_store
Create the Convenience Store Payment Methods
Creates a new Convenience Store payment method record for the onboarding live application of the currently authenticated merchant.
betaThis API is a pre-release. Please contact KOMOJU to obtain more usage instructions before using it.
サンプル
- cURL
- Node.js
- Ruby
curl -X POST https://komoju.com/api/v1/live_application/payment_methods/convenience_store \
-u sk_123456: \
-d "open_time=06%3A00" \
-d "close_time=21%3A00" \
-d "expected_number_of_payments=100"
var querystring = require('querystring');
var https = require('https');
var secret_key = 'sk_123456'
var auth = 'Basic ' + Buffer.from(secret_key + ':').toString('base64');
var post_data = querystring.stringify({
'open_time': '06:00',
'close_time': '21:00',
'expected_number_of_payments': '100'
});
var post_options = {
host: 'komoju.com',
port: '443',
path: '/api/v1/live_application/payment_methods/convenience_store',
method: 'POST',
headers: {
'Authorization': auth,
'Content-Length': Buffer.byteLength(post_data)
}
};
var post_req = https.request(post_options, function(res) {
res.setEncoding('utf8');
res.on('data', function (chunk) {
console.log(chunk);
});
});
post_req.write(post_data);
post_req.end();
require 'uri'
require 'net/https'
require 'json'
require 'base64'
require 'pp'
uri = URI.parse('https://komoju.com/api/v1/live_application/payment_methods/convenience_store')
https = Net::HTTP.new(uri.host, uri.port)
https.use_ssl = true
secret_key = 'sk_123456'
auth = Base64.encode64("#{secret_key}:")
headers = {
'Content-Type' => 'application/json',
'Authorization' => "Basic #{auth}"
}
body = {
open_time: "06:00",
close_time: "21:00",
expected_number_of_payments: "100"
}
res = https.post(
uri.path,
body.to_json,
headers
)
puts res.body
{
"open_time": "06:00",
"close_time": "21:00",
"expected_number_of_payments": "100"
}
パラメータ
名前 | 説明 |
---|---|
open_time 任意 |
The open time of your customer service operating hours |
close_time 任意 |
The close time of your customer service operating hours |
expected_number_of_payments 任意 |
Expected number of transactions (per month) |
PATCH /api/v1/payment_methods/convenience_store
Update the Convenience Store Payment Methods
Update the Convenience Store payment method record for the onboarding live application of the currently authenticated merchant.
betaThis API is a pre-release. Please contact KOMOJU to obtain more usage instructions before using it.
サンプル
- cURL
- Node.js
- Ruby
curl -X PATCH https://komoju.com/api/v1/live_application/payment_methods/convenience_store \
-u sk_123456: \
-d "open_time=07%3A00"
var querystring = require('querystring');
var https = require('https');
var secret_key = 'sk_123456'
var auth = 'Basic ' + Buffer.from(secret_key + ':').toString('base64');
var patch_data = querystring.stringify({
'open_time': '07:00'
});
var patch_options = {
host: 'komoju.com',
port: '443',
path: '/api/v1/live_application/payment_methods/convenience_store',
method: 'PATCH',
headers: {
'Authorization': auth,
'Content-Length': Buffer.byteLength(patch_data)
}
};
var patch_req = https.request(patch_options, function(res) {
res.setEncoding('utf8');
res.on('data', function (chunk) {
console.log(chunk);
});
});
patch_req.write(patch_data);
patch_req.end();
require 'uri'
require 'net/https'
require 'json'
require 'base64'
require 'pp'
uri = URI.parse('https://komoju.com/api/v1/live_application/payment_methods/convenience_store')
https = Net::HTTP.new(uri.host, uri.port)
https.use_ssl = true
secret_key = 'sk_123456'
auth = Base64.encode64("#{secret_key}:")
headers = {
'Content-Type' => 'application/json',
'Authorization' => "Basic #{auth}"
}
body = {
open_time: "07:00"
}
res = https.patch(
uri.path,
body.to_json,
headers
)
puts res.body
{
"open_time": "07:00",
"close_time": "21:00",
"expected_number_of_payments": "100"
}
パラメータ
名前 | 説明 |
---|---|
open_time 任意 |
The open time of your customer service operating hours |
close_time 任意 |
The close time of your customer service operating hours |
expected_number_of_payments 任意 |
Expected number of transactions (per month) |
POST /api/v1/payment_methods/seven_eleven
Create the Seven Eleven Payment Methods
Creates a new Seven Eleven payment method record for the onboarding live application of the currently authenticated merchant.
betaThis API is a pre-release. Please contact KOMOJU to obtain more usage instructions before using it.
サンプル
- cURL
- Node.js
- Ruby
curl -X POST https://komoju.com/api/v1/live_application/payment_methods/seven_eleven \
-u sk_123456: \
-d "open_time=06%3A00" \
-d "close_time=21%3A00"
var querystring = require('querystring');
var https = require('https');
var secret_key = 'sk_123456'
var auth = 'Basic ' + Buffer.from(secret_key + ':').toString('base64');
var post_data = querystring.stringify({
'open_time': '06:00',
'close_time': '21:00'
});
var post_options = {
host: 'komoju.com',
port: '443',
path: '/api/v1/live_application/payment_methods/seven_eleven',
method: 'POST',
headers: {
'Authorization': auth,
'Content-Length': Buffer.byteLength(post_data)
}
};
var post_req = https.request(post_options, function(res) {
res.setEncoding('utf8');
res.on('data', function (chunk) {
console.log(chunk);
});
});
post_req.write(post_data);
post_req.end();
require 'uri'
require 'net/https'
require 'json'
require 'base64'
require 'pp'
uri = URI.parse('https://komoju.com/api/v1/live_application/payment_methods/seven_eleven')
https = Net::HTTP.new(uri.host, uri.port)
https.use_ssl = true
secret_key = 'sk_123456'
auth = Base64.encode64("#{secret_key}:")
headers = {
'Content-Type' => 'application/json',
'Authorization' => "Basic #{auth}"
}
body = {
open_time: "06:00",
close_time: "21:00"
}
res = https.post(
uri.path,
body.to_json,
headers
)
puts res.body
{
"open_time": "06:00",
"close_time": "21:00"
}
パラメータ
名前 | 説明 |
---|---|
open_time 任意 |
The open time of your customer service operating hours |
close_time 任意 |
The close time of your customer service operating hours |
PATCH /api/v1/payment_methods/seven_eleven
Update the Seven Eleven Payment Methods
Update the Seven Eleven payment method record for the onboarding live application of the currently authenticated merchant.
betaThis API is a pre-release. Please contact KOMOJU to obtain more usage instructions before using it.
サンプル
- cURL
- Node.js
- Ruby
curl -X PATCH https://komoju.com/api/v1/live_application/payment_methods/seven_eleven \
-u sk_123456: \
-d "open_time=07%3A00"
var querystring = require('querystring');
var https = require('https');
var secret_key = 'sk_123456'
var auth = 'Basic ' + Buffer.from(secret_key + ':').toString('base64');
var patch_data = querystring.stringify({
'open_time': '07:00'
});
var patch_options = {
host: 'komoju.com',
port: '443',
path: '/api/v1/live_application/payment_methods/seven_eleven',
method: 'PATCH',
headers: {
'Authorization': auth,
'Content-Length': Buffer.byteLength(patch_data)
}
};
var patch_req = https.request(patch_options, function(res) {
res.setEncoding('utf8');
res.on('data', function (chunk) {
console.log(chunk);
});
});
patch_req.write(patch_data);
patch_req.end();
require 'uri'
require 'net/https'
require 'json'
require 'base64'
require 'pp'
uri = URI.parse('https://komoju.com/api/v1/live_application/payment_methods/seven_eleven')
https = Net::HTTP.new(uri.host, uri.port)
https.use_ssl = true
secret_key = 'sk_123456'
auth = Base64.encode64("#{secret_key}:")
headers = {
'Content-Type' => 'application/json',
'Authorization' => "Basic #{auth}"
}
body = {
open_time: "07:00"
}
res = https.patch(
uri.path,
body.to_json,
headers
)
puts res.body
{
"open_time": "07:00",
"close_time": "21:00"
}
パラメータ
名前 | 説明 |
---|---|
open_time 任意 |
The open time of your customer service operating hours |
close_time 任意 |
The close time of your customer service operating hours |
POST /api/v1/payment_methods/linepay
Create the LINE Pay Payment Methods
Creates a new LINE Pay payment method record for the onboarding live application of the currently authenticated merchant.
betaThis API is a pre-release. Please contact KOMOJU to obtain more usage instructions before using it.
サンプル
- cURL
- Node.js
- Ruby
curl -X POST https://komoju.com/api/v1/live_application/payment_methods/linepay \
-u sk_123456: \
-d "accepted_line_tos=true"
var querystring = require('querystring');
var https = require('https');
var secret_key = 'sk_123456'
var auth = 'Basic ' + Buffer.from(secret_key + ':').toString('base64');
var post_data = querystring.stringify({
'accepted_line_tos': 'true'
});
var post_options = {
host: 'komoju.com',
port: '443',
path: '/api/v1/live_application/payment_methods/linepay',
method: 'POST',
headers: {
'Authorization': auth,
'Content-Length': Buffer.byteLength(post_data)
}
};
var post_req = https.request(post_options, function(res) {
res.setEncoding('utf8');
res.on('data', function (chunk) {
console.log(chunk);
});
});
post_req.write(post_data);
post_req.end();
require 'uri'
require 'net/https'
require 'json'
require 'base64'
require 'pp'
uri = URI.parse('https://komoju.com/api/v1/live_application/payment_methods/linepay')
https = Net::HTTP.new(uri.host, uri.port)
https.use_ssl = true
secret_key = 'sk_123456'
auth = Base64.encode64("#{secret_key}:")
headers = {
'Content-Type' => 'application/json',
'Authorization' => "Basic #{auth}"
}
body = {
accepted_line_tos: "true"
}
res = https.post(
uri.path,
body.to_json,
headers
)
puts res.body
{
"accepted_line_tos": "true"
}
パラメータ
名前 | 説明 |
---|---|
accepted_line_tos 必須 |
I've read and agree with LINEPay's terms of service |
PATCH /api/v1/payment_methods/linepay
Update the LINE Pay Payment Methods
Update the LINE Pay payment method record for the onboarding live application of the currently authenticated merchant.
betaThis API is a pre-release. Please contact KOMOJU to obtain more usage instructions before using it.
サンプル
- cURL
- Node.js
- Ruby
curl -X PATCH https://komoju.com/api/v1/live_application/payment_methods/linepay \
-u sk_123456: \
-d "accepted_line_tos=false"
var querystring = require('querystring');
var https = require('https');
var secret_key = 'sk_123456'
var auth = 'Basic ' + Buffer.from(secret_key + ':').toString('base64');
var patch_data = querystring.stringify({
'accepted_line_tos': 'false'
});
var patch_options = {
host: 'komoju.com',
port: '443',
path: '/api/v1/live_application/payment_methods/linepay',
method: 'PATCH',
headers: {
'Authorization': auth,
'Content-Length': Buffer.byteLength(patch_data)
}
};
var patch_req = https.request(patch_options, function(res) {
res.setEncoding('utf8');
res.on('data', function (chunk) {
console.log(chunk);
});
});
patch_req.write(patch_data);
patch_req.end();
require 'uri'
require 'net/https'
require 'json'
require 'base64'
require 'pp'
uri = URI.parse('https://komoju.com/api/v1/live_application/payment_methods/linepay')
https = Net::HTTP.new(uri.host, uri.port)
https.use_ssl = true
secret_key = 'sk_123456'
auth = Base64.encode64("#{secret_key}:")
headers = {
'Content-Type' => 'application/json',
'Authorization' => "Basic #{auth}"
}
body = {
accepted_line_tos: "false"
}
res = https.patch(
uri.path,
body.to_json,
headers
)
puts res.body
{
"accepted_line_tos": "false"
}
パラメータ
名前 | 説明 |
---|---|
accepted_line_tos 任意 |
I've read and agree with LINEPay's terms of service |