我创建了一个 paypal 按钮来管理我的订阅,我打算将它与我自己的链接一起使用。我没有使用 javascript SDK
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=0000&custom=123">Pay now</a>
我发现你可以传递 &custom=123 参数 但是当我使用
获取单个订阅时https://api-m.paypal.com/v1/billing/subscriptions/123
我没有看到 custom 的值,但我在 IPN 端点的 POST 请求中看到了它。这意味着 Paypal 正在发送。
我如何才能在订阅本身中看到这个自定义值?谢谢!
答案 0 :(得分:0)
或者:改为使用 JavaScript SDK 订阅按钮并在 createSubscription
的 custom_id
字段中提供您的值
或者:继续使用旧版订阅按钮/链接,并尝试使用订阅的已完成交易 ID(不是配置文件 ID)查询 v1/payments 销售或 v2/payments 捕获,这可能映射到包含旧版订阅交易的custom
值
答案 1 :(得分:-1)
试试这个
# find first time
element = WebDriverWait(driver, 20).until(EC.presence_of_element_located((By.XPATH, butn)))
print(element.is_enabled())
while element.is_enabled():
driver.find_element_by_xpath(butn).click()
# find again after changes in DOM
element = WebDriverWait(driver, 20).until(EC.presence_of_element_located((By.XPATH, butn)))
print(element.is_enabled())