2010-02-05 2 views
1

레일즈 앱에서 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? 

답변

1

빌링 어드레스 변수는 x_ship_to_zip, x_ship_to_country

모두 제공하지 않으려는 사람은 생략해도됩니다.

AIM Guide 페이지에서 찾을 수 있습니다.

+0

같아요. x_recurring을 시도했지만 응답을 볼 수 없으며 트랜잭션도 반복적으로 표시되지 않습니다. 이걸 좀 도와 주실 래요? – Guru

0

피들러를 설치하고 다시 점점 원시 응답 봐. authorize.net은 잘못된 점에 대한 몇 가지 힌트를 제공해야합니다. , x_ship_to_first_name, x_ship_to_last_name, x_ship_to_company, x_ship_to_address, x_ship_to_city, x_ship_to_state : x_first_name, x_last_name, x_company, x_address, x_city, x_state, x_zip, x_country, x_phone

배송 변수는 x_fax :

+0

Linux 및 OS X 버전이 아닙니까? –