使用意向Paypal Express Checkout授权不返回授权ID(Paypal Express Checkout with Intent Authorize not returning authorization id)
我们正在使用支付宝快速结帐,这是集成在我们的UI项目与JavaScript。
当我们使用intent: sale
时,一切都按预期工作intent: sale
。
即intent: sale
execute
呼叫intent: sale
为related_resources
属性返回{ sale : {id: ...} }
对象。
但是,当我使用intent: authorize
没有{ authorization : {id: ...}}
正在返回related_resources
属性。 (对于paypal,credit_card付款方式类型,这是相同的行为)。
注意:我传递intent: sale/authorize
payment
电话We are using Paypal express checkout which is integrated in our UI project with javascript.
Everything working as expected when we useintent: sale
.
i.e.execute
call withintent: sale
returning{ sale : {id: ...} }
object forrelated_resources
property.
But when I useintent: authorize
no{ authorization : {id: ...}}
is returning forrelated_resources
property. ( it's same behaviour for both paypal, credit_card payment method types).
Note: I am passingintent: sale/authorize
forpayment
call
原文:https://stackoverflow.com/questions/45704837
最满意答案
@Query(value="{id : $0}", delete = true) public Person deleteBy
@Query(value="{id : $0}", delete = true) public Person deleteBy
相关问答
更多-
好的,问题出现在@EnableMongoRepositories注释中。 当我将包名称添加到它的正文(所以它看起来像:@EnableMongoRepositories({“prv.makro.mjur.repository”}))我能够自动装载我的UserRepository Ok, the problem was with @EnableMongoRepositories annotation. When I have added package name to it's body (so it look ...
-
如何使用查询注释删除MongoRepository中的项目?(How to delete items in MongoRepository using query annotation?)[2023-06-02]
@Query(value="{id : $0}", delete = true) public Person deleteBy @Query(value="{id : $0}", delete = true) public Person deleteBy -
我可以解决这个问题: 首先, java.time.LocalDateTime对Spring Data / MongoDB没有问题。 为了澄清,请为索引添加名称,例如@Indexed(name = "deleteAt", expireAfterSeconds = 0) 。 但是,可能不需要此步骤。 但是,添加@Document注释有很多帮助: @Document(collection = "expiringDocument") 当我的应用程序运行时删除整个集合时,新的文档插入将再次创建集合但没有索引。 要确保 ...
-
是的,应该像以前一样工作 考虑一下我希望找到具有不区分大小写和已删除属性设置为false的电子邮件的用户的示例 因此,只需要将自动生成的查询与AND运算符组合并将电子邮件作为参数传递。 喜欢 : findByEmailIgnoreCaseAndDeletedFalse(String email) Yes , it should be work as Considering example where i want to find user who's having email with case inse ...
-
我切换大小写不敏感,并允许模式中的所有字母匹配大小写。 在MongoDB文档中阅读更多关于$ regex的信息。 在你的查询中,它看起来像你混淆了一些参数顺序(名字正则表达式中的?2)。 我相信它应该是: @Query("{ 'name':{$regex:?0,$options:'i'}, sales': {$gte:?1,$lte:?2}}") public Page findByNameAndAgeRange(String name,double ageFrom,double ageTo,Pageab ...
-
确保在MongoTemplate或MongoDbFactory实现上配置适当的WriteConcern 。 相关MongoTemplate方法的JavaDoc就在这里 , SimpleMongoDbFactory的JavaDoc就在这里 。 Make sure you configure the appropriate WriteConcern on MongoTemplate or the MongoDbFactory implementation. The JavaDoc for the relevan ...
-
虽然MongoRepository比MongoTemplate使用起来要简单得多,但是模板可以更好地控制你正在执行的查询。 话虽如此,你仍然可以实现使用MongoRepository的复杂查询,如下所示: @Query("{'id': ?#{ [0] ? {$exists :true} : [1] }}") List
findByQueryWithExpressionAndNestedObject(boolean param0, String param1); 更多信息可以在这里找到 但作 ... -
您可以尝试以下几种方式。 没有Query Annotation。 List
findByArrivedBetween(ZonedDateTime startDate, ZonedDateTime endDate); 使用Query Annotation。 @Query("{'arrived': {$gte: ?0, $lte:?1 }}") List findPacketArrivedBetween(ZonedDateTime startDate, Zone ... -
我最近遇到过类似的事情。 使用Clazz替代我的域类,这是我做的: long count = mongoTemplate.count(query, clazz.class); query.with(pageable); List
found = mongoTemplate.find(query, clazz.class); Page page = new PageImpl (found, pageable, count); 我正在使用spring-boot-starter- ... -
看起来您错过了域的存储库界面。 public interface YourRepository extends MongoRepository
{} 并将此存储库自动装入管理器。 Looks like you're missing the repository interface for your domain. public interface YourRepository extends MongoRepository {} ...