I was unable to make a payment when I set the currencyCode to JPY. when I transitioned to Square’s iPad app, it instantly reverted to the app I was transitioning from without performing any action. How do I change the store settings to allow me to use JPY?
SampleCode
Failure
do {
let money = try SCCMoney(amountCents: 1000, currencyCode: "JPY")
// Create the request.
let apiRequest =
try SCCAPIRequest(
callbackURL: callbackURL,
amount: money,
userInfoString: nil,
locationID: nil,
notes: nil,
customerID: nil,
supportedTenderTypes: tenderTypes,
clearsDefaultFees: false,
returnsAutomaticallyAfterPayment: true,
disablesKeyedInCardEntry: false,
skipsReceipt: false
)
try SCCAPIConnection.perform(apiRequest)
} catch let error as NSError {
print(error.localizedDescription)
}
Success
do {
let money = try SCCMoney(amountCents: 1000, currencyCode: "USD")
// Create the request.
let apiRequest =
try SCCAPIRequest(
callbackURL: callbackURL,
amount: money,
userInfoString: nil,
locationID: nil,
notes: nil,
customerID: nil,
supportedTenderTypes: tenderTypes,
clearsDefaultFees: false,
returnsAutomaticallyAfterPayment: true,
disablesKeyedInCardEntry: false,
skipsReceipt: false
)
try SCCAPIConnection.perform(apiRequest)
} catch let error as NSError {
print(error.localizedDescription)
}