hyperwallet 결제
hyperwallet
Hyper wallet 결제 방식
Payment fund 는 미리 준비된 카드나 은행 계좌로 옮겨진다.
요청에 따라 미래에 결제를 완료할 수 있다.
Client 객체를 통해 결제를 진행한다.
핵심적인 엔티티의 의미는 다음과 같다.
DestinationToken For Portal solutions, provide a user-token
For Select solutions, provide a user-token
For Direct solutions, provide a bank-account-token
For Card solutions, provide a prepaid-card-token
Destination Token에 따라 계좌 혹은 유저 계정으로 돈을 보낼 수 있다. var Hyperwallet = require('hyperwallet-node'); var client = new Hyperwallet({ username: 'testuser@12345678', password: 'myAccPassw0rd' });
client.createPayment({ "amount": "20.00", "clientPaymentId": "DyClk0VG", "currency": "USD", "destinationToken": "usr-c4292f1a-866f-4310-a289-b916853939de", "programToken": "prg-83836cdf-2ce2-4696-8bc5-f1b86077238c", "purpose": "OTHER" }, function(error, body) { // handle response body here });
expiresOn
When the payment will expire if unclaimed
curl -X "POST" "https://api.sandbox.hyperwallet.com/rest/v3/transfers"
-u testuser@12345678:myAccPassw0rd
-H "Content-Type: application/json"
-H "Accept: application/json"
-d "{
"clientTransferId": "6712348070812",
"destinationAmount": "125",
"destinationCurrency": "USD",
"notes": "Partial-Balance Transfer",
"memo": "TransferClientId56387",
"sourceToken": "usr-ac5727ac-8fe7-42fb-b69d-977ebdd7b48b",
"destinationToken": "trm-e3af62b4-24d5-100f-a4eb-ada857b8fc30"
}”
Transfer 이란 Hyperwallet계좌에서 실제 계좌 혹은 카드로 돈을 전송하는 것을 의미한다. sourceToken 엔티티는 대금의 출처를 의미한다. 선지급 카드 혹은 유저 계좌가 들어갈 수 있다.
싱가포르에서 한국으로 입금 혹은 한국에서 싱가포르로 입금이 가능한가?
hyperwallet에서 test를 진행하기 위하여 tutorial 에서 발급받은 program key 를 기준으로 테스트를 진행이 가능하다. 여기서 user를 생성하고 account를 연결하여 transfer 및 payment를 테스트 가능하다. 계좌를 입력하는 경우 iban 코드가 필요한데 이는 international bank account number로 각 계좌마다 존재한다. 하지만 국내 은행의 경우 이러한 iban 이 없는 경우가 ㅁ낳다. Bank swift code는 각 은해마다 존재한다.