0
ActiveMerchant 설명서의 예제를 사용하여 테스트 지불을하려고하는데 결과가 508이고 메시지가 = 잘못된 타임 스탬프 인 응답이 나타납니다. 값이 허용 한도를 초과합니다. "잘못된 타임 스탬프 : 값이 허용 한도를 초과합니다"
이
은 내가 코드를 사용하고 있습니다 :ActiveMerchant::Billing::Base.mode = :test
gateway = ActiveMerchant::Billing::RealexGateway.new(
:login => 'myUsername',
:password => 'myPassword')
amount = 1000 # $10.00
credit_card = ActiveMerchant::Billing::CreditCard.new(
:first_name => 'Bob',
:last_name => 'Bobsen',
:number => 'valid card number',
:month => '8',
:year => '2015',
:verification_value => '123')
if credit_card.valid?
response = gateway.purchase(amount, credit_card)
if response.success?
puts "Successfully charged $#{sprintf("%.2f", amount/100)} to the credit card #{credit_card.display_number}"
else
raise StandardError, response.message
end
end
사람은 이러한 오류가 발생할?
덕분에, 열린