הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   מציאת משתנה נעלם (https://hosts.co.il/forums/showthread.php?t=103099)

dabi 23-03-13 20:03

מציאת משתנה נעלם
 
זה המשתנים של PAYPAL
https://www.x.com/developers/paypal/...ndPDTVariables
business זה לא שנשלח הכסף
ציטוט:

Email address or account ID of the payment recipient (that is, the merchant). Equivalent to the values of receiver_email (if payment is sent to primary account) and business set in the Website Payment HTML.
item_name זה השם של המוצר עליו משלמים
ציטוט:

Item name as passed by you, the merchant. Or, if not passed by you, as entered by your customer. If this is a shopping cart transaction, PayPal will append the number of the item (e.g., item_name1, item_name2, and so forth).
זה הסכום amount
מה שאני מחפש זה את המשתנה שבו מכניסים את ה URL שהמשתמש חוזר אליו אחרי התשלום(אני רוצה להגדיר שיחזור לאתר שלי)
אני לא מוצא אותו...

אדיר 23-03-13 20:21

קוד:

return_url        The URL to which the sender’s browser is redirected after approving a payment on paypal.com. Use the pay key to identify the payment as follows: payKey=${payKey}.
cancel_url        The URL to which the sender’s browser is redirected if the sender cancels the approval for a payment on paypal.com. Use the pay key to identify the payment as follows: payKey=${payKey}.


dabi 23-03-13 21:40

ציטוט:

נכתב במקור על ידי אדיר (פרסם 873282)
קוד:

return_url        The URL to which the sender’s browser is redirected after approving a payment on paypal.com. Use the pay key to identify the payment as follows: payKey=${payKey}.
cancel_url        The URL to which the sender’s browser is redirected if the sender cancels the approval for a payment on paypal.com. Use the pay key to identify the payment as follows: payKey=${payKey}.


את המשתנה הזה ניסיתי
PHP קוד:

      $p->add_field('return_url''http://www.ynet.co.il'); 

אך הוא לא חוזר אוטומטי לשום אתר אלא מראה

http://up367.siz.co.il/up2/u4gxmyojjmyz.gif

Haimz 23-03-13 23:56

אני בטוח שאני טועה אבל יש מצב שלא, אתה חייב להגדיר גם ipn_notification_url כדי שיחזור..

נריה 24-03-13 00:00

בהגדרות ה PAYPAL
Profile
Selling Preferences
Website Payment Preferences
Auto Return
ON
ולמטה הגדר URL לחזרה

אדיר 24-03-13 00:06

אני חושב שכדאי גם להציע לך לשים כתובת לחזרה באותו דומיין שממנו אתה שולח את הגולש.
אחרת, אם תשים שם דומיין אחר (ynet כמו שאתה מראה כאן) - די מובן לי למה הם מסרבים לשלוח לשם את הבחור.

אם אני שם את עצמי במקומם, אני לא הייתי ממהר לשלוח לקוח ששילם לאתר שהוא לא האתר ממנו הוא הגיע.


כל הזמנים הם GMT +2. הזמן כעת הוא 03:13.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ