php - omnipay array of products -


Hello guys, I am working with omnipay in larval and I want to know how can I change the code to show in PayPal? Get the total number and item of each item

  $ response = $ gateway-> Purchase (Array ('cancelURL' = & gt; $ keys- & gt; getCancelUrl ()), 'returnURL' = & gt; get- $$-> getReturnUrl (), 'Description' = & gt; Cart :: Content (), 'Zodiac' = 'gt; 200.00', 'currency' = & gt; $ keys- getCurrency ())) - & gt; Send (); & Lt; / I & gt;  

I have never used Omnipe, the way I walked around And what I found is that you are searching on a class at GitHub.

  $ purchase = $ gateway-> Purchase (array ('currency' = & gt; 'GBP', 'transaction reference' = & gt; 'array (array (' name '= & gt; 10,' value '=>' 5.00 ', 'Description' = & gt; 'Reference ID1', 'clientIp' => '95.87.212.88 ',' item '=> 1 product, DCC,' quantity '= & gt; 2), array ( 'Name' = & gt; 12, 'value' = & gt; '5.00 ',' description '=> shipping for product 1' ',' quantity '= & gt; 1),' card '= & Gt; 1), array ('name' = & gt; 12, 'value' => gtk; 0.00 ',' description '=> gtk; promotion', 'quantity' => 1) = & gt; array ('First name' = & gt; 'example', 'last name' = & gt; 'user', 'number' => 4111111111111111, 'expiration time' = & gt; 7, 'End date' = & gt; 2013, 'CVV' => 123, 'Address1' => '123 Shipping St', 'Address2' => Shipsville, 'City' = & Gt; 'Shipinstown', 'Postcode' => 54321, 'State' = 'NY', 'Country' = & gt; US, 'Phone' => (555) ) 987-6543 ',' email '= & gt;' John@example.com ',)));  

I suggest that you implement that item array in your script and test the results.

PS: Maybe you missed it, but there is a composer package that applies;)


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -