사용자 삽입 이미지
열어보시면 
cancel.asp
error.asp
multi_pay.asp
notify.asp
pay.asp
이런 파일들이 나오는데, 파일들 열어보시면 이해가 되시리라 봅니다.
약간의 추가설명을 드리자면 단일 상품용이라면 pay.asp를, 여러상품용은 multi_pay.asp를 이용하시면 됩니다.
customer.mdb라는 데이터베이스 파일도 포함되어 있을텐데 multi_pay.asp파일에서 참조합니다.
상품코드로 상품 상세를 가져와서 이용하기 위한 파일이라고 보시면 됩니다.
도움이 되셨길 바랍니다.
 
 
 
<%@ Language=VBScript %>
<%
 
 ' 페이팔 계정 정보
 my_paypal_email = "myemail@mydomain.com"
 
 ' 내 도메인 정보
 return_page = "http://www.mydomain.com"
 notify_page = "http://www.mydomain.com/paypal/notify.asp"
 cancel_page = "http://www.mydomain.com/paypal/cancel.asp"
 
 ' 내 상품 정보
 ' GET방식으로 받는다면 item_price = Request.QueryString("item_price") 이런 식으로
 ' POST방식으로 받는다면 item_price = Request.Form("item_price") 이런 식으로
  item_price = "50"
 item_name = "My Product"
 item_quantity = "1"
 item_cod = "12345"
 currency_type = "USD"
 
 ' 페이팔 페이지 call 부분
 url = "https://www.paypal.com/xclick/"
 url = url & "?business=" & my_paypal_email
 url = url & "&return=" & return_page
 url = url & "&notify_url=" & notify_page
 url = url & "&cancel_return=" & cancel_page
 url = url & "&quantity=" & item_quantity
 url = url & "&item_name=" & replace(item_name," ","%20")
 url = url & "&item_number=" & item_cod
 url = url & "&amount=" & item_price
 url = url & "&no_shipping=1"
 url = url & "&no_note=0"
 url = url & "&currency_code=" & currency_type
 response.redirect url 
%>
2017/02/26 15:26 2017/02/26 15:26

Trackback Address :: https://youngsam.net/trackback/1844