Yup, just setup the PHP SDK and add the v.zero JS library and you're good to go
--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Fat-Free Framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/f3-framework/PZSBCVQ0MeM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to f3-framework+unsubscribe@googlegroups.com.
To post to this group, send email to f3-fra...@googlegroups.com.
Visit this group at https://groups.google.com/group/f3-framework.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/0617d41a-7c41-4273-80ee-93ccf89857b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
$f3->PAYPAL = [
"user" => $this->settings["username"],
"pass" => $this->settings["password"],
"signature" => $this->settings["signature"],
"endpoint" => "sandbox",
"apiver" => "124.0",
"return" => $f3->SCHEME ."://".$f3->HOST.$f3->BASE."/".trim($this->settings["return"], "/"),
"cancel" => $f3->SCHEME ."://".$f3->HOST.$f3->BASE."/".trim($this->settings["cancel"], "/"),
"log"=>0
];
$paypal = new PayPal;
$f3->clear("paypal");
new PayPal ([
"user" => $this->settings["username"],
"pass" => $this->settings["password"],
"signature" => $this->settings["signature"],
"endpoint" => "sandbox",
"apiver" => "124.0",
"return" => $f3->SCHEME ."://".$f3->HOST.$f3->BASE."/".trim($this->settings["return"], "/"),
"cancel" => $f3->SCHEME ."://".$f3->HOST.$f3->BASE."/".trim($this->settings["cancel"], "/"),
"log"=>0
]);
Cheers,
Tim
'ACK' => 'Failure', 'L_ERRORCODE0' => '10002', 'L_SHORTMESSAGE0' => 'Security error', 'L_LONGMESSAGE0' => 'Security header is not valid', 'L_SEVERITYCODE0' => 'Error',
It appears I have something wrong with my credentials.
I thought I would check with you on the terminology, which seems to have changed.
'user'=>'apiusername' -> Same as Sandbox account email 'pass'=>'apipassword' -> Sandbox account password 'signature'=>'apisignature' -> Client ID
I would appreciate any thoughts or suggestions,
Bob
--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Fat-Free Framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/f3-framework/PZSBCVQ0MeM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to f3-framework...@googlegroups.com.
To post to this group, send email to f3-fra...@googlegroups.com.
Visit this group at https://groups.google.com/group/f3-framework.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/f8eca792-e737-47d3-83f1-12dda3ec83da%40googlegroups.com.
--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Fat-Free Framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/f3-framework/PZSBCVQ0MeM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to f3-framework...@googlegroups.com.
To post to this group, send email to f3-fra...@googlegroups.com.
Visit this group at https://groups.google.com/group/f3-framework.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/0b4bb35a-96b3-462d-8e3b-5ee6baf21192%40googlegroups.com.
["redirect"]=> string(86) "https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token=EC-2*****8FN4890634"
see :https://lucy.be/PP_init?c=trois&l=fr
Thanxxx Tim,it helps !
["redirect"]=> string(86) "https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token=EC-2J354038FN4890634"
see :https://lucy.be/PP_init?c=trois&l=fr
--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Fat-Free Framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/f3-framework/PZSBCVQ0MeM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to f3-framework...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/bb4866b6-bd06-4abd-a681-4eea9967e878%40googlegroups.com.
Just an observation, Tim - and you can probably ignore it, but not all currencies have 2 dp... ;)(Basically Dinar's in various countries, and the Rial Omani have 3. There's a few there with 0 dp as well. Whether Paypal themselves actually support them is another matter...)
Australian dollar | AUD | 2 |
Brazilian real 2 | BRL | 2 |
Canadian dollar | CAD | 2 |
Czech koruna | CZK | 2 |
Danish krone | DKK | 2 |
Euro | EUR | 2 |
Hong Kong dollar | HKD | 2 |
Hungarian forint 1 | HUF | 0 |
Indian rupee 3 | INR | 2 |
Israeli new shekel | ILS | 2 |
Japanese yen 1 | JPY | 0 |
Malaysian ringgit 4 | MYR | 2 |
Mexican peso | MXN | 2 |
New Taiwan dollar 1 | TWD | 2 |
New Zealand dollar | NZD | 2 |
Norwegian krone | NOK | 2 |
Philippine peso | PHP | 2 |
Polish złoty | PLN | 2 |
Pound sterling | GBP | 2 |
Russian ruble | RUB | 2 |
Singapore dollar | SGD | 2 |
Swedish krona | SEK | 2 |
Swiss franc | CHF | 2 |
Thai baht | THB | 2 |
United States dollar | USD | 2 |
I could add a format function that checks the currency and applies the format or leaves it alone if it's one of the 3 listed above.If anyone has more suggestions or can think of a better way to handle it rather than a conditional let me know.
174 $this->lineitems["PAYMENTREQUEST_0_ITEMAMT"] = number_format($this->itemtotal, $this->dp, '.', ''); |
174 $this->lineitems["PAYMENTREQUEST_0_ITEMAMT"] = number_format($this->itemtotal, dp($currency), '.', ''); |