레일즈 앱에서 authorize.net 및 activemerchant를 사용하고 있습니다.활성 merchant를 사용하는 Authorize.net 매개 변수
구매할 때 authorize.net은 구매에 대한 정보가 포함 된 이메일을 다시 전송합니다. 나는 그 (것)들에게 계산서와 발송 주소 정보를 보내고 전자 우편에서 돌려 보내야한다, 그러나 어떤 정보든지 돌려 보내고 있지 않다, 명백하게 나는 varable 이름을 잘못 알아 냈는가, 누군가는 있어야하는 무슨을 알 는가? 나는 authorize.net api 문서와 activemerchant 's를 쏟아 부었지만 필요한 것을 찾을 수 없다. 주문 모델에
내 구매 방법은 다음과 같습니다
def purchase
purchase_options = {
:ip => ip_address,
:first_name => first_name,
:last_name => last_name,
:address => billing_street_address,
:city => billing_city,
:state => billing_state,
:country => "US",
:zip => billing_zip,
:ship_to_first_name => first_name,
:ship_to_last_name => last_name,
:ship_to_address => shipping_street_address,
:ship_to_city => shipping_city,
:ship_to_state => shipping_state,
:ship_to_country => "US",
:ship_to_zip => shipping_zip
}
response = GATEWAY.purchase(price_in_cents, credit_card, purchase_options)
# other transaction stuff
response.success?
끝
같아요. x_recurring을 시도했지만 응답을 볼 수 없으며 트랜잭션도 반복적으로 표시되지 않습니다. 이걸 좀 도와 주실 래요? – Guru