worldpay



購入から決済まで

imageプラグインエラー : 画像を取得できませんでした。しばらく時間を置いてから再度お試しください。 imageプラグインエラー : 画像を取得できませんでした。しばらく時間を置いてから再度お試しください。
  • loiloの場合
お客さんがloiloから購入情報をpost

worldpay→ブラウザを閉じる→loiloは何もしない。(「未払い」状態のpurchaseがDB内に存在し続ける)
↓   ↓
決済  キャンセル
↓   ↓
loilo決済モジュールへ
shopping/load_payment_module.php

user/homeへ

トランザクション初期化

トランザクションの初期化処理というものはworldpayには無いっぽい。(無いという記述は無いが、トランザクションに関する記述が見当たらない。)
その代わり、cartIdを設定でき、決済後はカスタマイズ可能な決済完了画面(Payment Notifications)から取得できる。

また、transIdが決済完了後に発行される。transIdはcartIdと同様に、決済完了画面(Payment Notifications)から取得できる。

支払いページ

configration


Example: plural

<!-- This is a purchase token, for more information on the elements with in a purchase token see the supplied help section. -->
<form action="https://select.worldpay.com/wcc/purchase" name=BuyForm method=POST>
<input type="hidden" name="instId" value="104112">
<input type="hidden" name="cartId" value="WorldPay Test page">
<input type="hidden" name="currency" value="GBP">
<input type="hidden" name="desc" value="">
<input type="hidden" name="M_recipient" value="tiq@uk.worldpay.com">
<input type="hidden" name="M_subject" value="WorldPay example">
<input type="hidden" name="testMode" value="100">

postの内容
POST /wcc/purchase HTTP/1.1
Host: select.worldpay.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.8.1.6) Gecko/20070725 >Firefox/2.0.0.6
Accept: >text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: ja,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: Shift_JIS,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://support.worldpay.com/examples/example_3/jr_example3.html
Cookie: JSESSIONID=99CF0BF95BE5DB87A2ECC30CBA2685A5; SrvInst=mggwcc10a
Content-Type: application/x-www-form-urlencoded
Content-Length: 847
instId=104112&cartId=WorldPay+Test+page&currency=GBP&desc=1+x+RS1%2C+2+x+BB1.&M_recipient=tiq%40uk.worldpay.com&M_subject=WorldPay+example&testMode=100&search=&desc2=RS1&cost2=19.99&qty2=1&desc3=BB1&cost3=11.99&qty3=2&desc4=MJ1&cost4=9.99&qty4=0&desc5=MJ2&cost5=9.99&qty5=0&desc6=MJ3&cost6=9.99&qty6=0&desc7=MJ4&cost7=9.99&qty7=0&desc8=MJ5&cost8=9.99&qty8=0&desc9=SG1&cost9=5.99&qty9=0&desc10=EP1&cost10=7.99&qty10=0&desc11=CP1&cost11=9.5&qty11=0&desc19=ETD&cost19=14.99&qty19=0&desc20=AF&cost20=24.99&qty20=0&desc21=PF&cost21=7.5&qty21=0&desc22=DH&cost22=12.99&qty22=0&desc23=DT&cost23=12.99&qty23=0&desc24=LR1&cost24=19.99&qty24=0&desc25=LR2&cost25=19.99&qty25=0&desc26=LR3&cost26=9.99&qty26=0&desc27=SM&cost27=6.98&qty27=0&desc28=TLS&cost28=14.99&qty28=0&hidden=Carriage&qty1=1&carriage_amount=uk&hidden=Carriage&cost1=1.50&cost=48.92&x=30&y=40
HTTP/1.x 200 OK
Date: Sun, 24 Feb 2008 06:08:53 GMT
Server: Apache
P3P: CP="NON CUR OUR NOR STA"
Set-Cookie: SrvInst=mggwcc10a; path=/
Content-Length: 14057
X-Forwarded-To: mggwcc10a.select.worldpay.com:80
Connection: close
Content-Type: text/html; charset=ISO-8859-1

支払いレスポンス


試験

The live account is not enabled for transactions, so there is no risk of accidentally triggering a live
transaction until you and WorldPay have agreed that you are ready to "go live".
だが、
以下のhiddenを追加することでgoing live後もtestmodeで動作させることができる。

<input type=hidden name="testMode" value="100">
value;
101: 銀行の権限付与が断られたのと同等の動作
100: 銀行の権限付与が成功したのと同等の動作

Going Live

Upon receipt of your ARF, WorldPay will review your site and its content to ensure that it complies
with WorldPay's conditions of trading. If we are satisfied, we will then activate your live account.
This process normally takes 2 working days from receipt of your ARF, assuming that your integration
is complete and your accounts have passed our full risk assessment.


worldpay側画面の設定




名前
コメント

すべてのコメントを見る

タグ:

+ タグ編集
  • タグ:

このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー利用規約 が適用されます。

最終更新:2008年03月01日 23:49